java.lang.Object
java.io.Writer
java.io.BufferedWriter
org.gjt.sp.jedit.SettingsXML.Saver
- All Implemented Interfaces:
Closeable,Flushable,Appendable,AutoCloseable
- Enclosing class:
SettingsXML
A 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.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoidfinish()Perform the final step of saving.voidWrite the XML 1.0 declaration.voidwriteXMLDeclaration(String version) Write the XML declaration of a specific version.
-
Method Details
-
writeXMLDeclaration
Write the XML 1.0 declaration. This should be the first output.- Throws:
IOException
-
writeXMLDeclaration
Write the XML declaration of a specific version. This should be the first output.- Throws:
IOException
-
finish
Perform the final step of saving.- Throws:
IOException
-