Package org.gjt.sp.jedit
Class SettingsXML.Saver
- java.lang.Object
-
- java.io.Writer
-
- java.io.BufferedWriter
-
- org.gjt.sp.jedit.SettingsXML.Saver
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.Appendable,java.lang.AutoCloseable
- Enclosing class:
- SettingsXML
public class SettingsXML.Saver extends java.io.BufferedWriterA Writer to write XML for saving. The real settings file is not changed until the finish() method succeeds, in which case the previous settings file is backuped.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfinish()Perform the final step of saving.voidwriteXMLDeclaration()Write the XML 1.0 declaration.voidwriteXMLDeclaration(java.lang.String version)Write the XML declaration of a specific version.
-
-
-
Method Detail
-
writeXMLDeclaration
public void writeXMLDeclaration() throws java.io.IOExceptionWrite the XML 1.0 declaration. This should be the first output.- Throws:
java.io.IOException
-
writeXMLDeclaration
public void writeXMLDeclaration(java.lang.String version) throws java.io.IOExceptionWrite the XML declaration of a specific version. This should be the first output.- Throws:
java.io.IOException
-
finish
public void finish() throws java.io.IOExceptionPerform the final step of saving.- Throws:
java.io.IOException
-
-