/** * Saves this macro to an XML file. This file can later be read in by the * constructor taking a <code>File</code> parameter; this is the mechanism * for saving macros. * * @param file The file in which to save the macro. * @throws IOException If an error occurs while generating the XML for * the output file. * @see #saveToFile(String) */ public void saveToFile(File file) throws IOException { saveToFile(file.getAbsolutePath()); }
/** * Saves this macro to an XML file. This file can later be read in by the * constructor taking a <code>File</code> parameter; this is the mechanism * for saving macros. * * @param file The file in which to save the macro. * @throws IOException If an error occurs while generating the XML for * the output file. * @see #saveToFile(String) */ public void saveToFile(File file) throws IOException { saveToFile(file.getAbsolutePath()); }