Package org.openscience.cdk.io.cml
Class CustomSerializer
java.lang.Object
nu.xom.Serializer
org.openscience.cdk.io.cml.CustomSerializer
public class CustomSerializer
extends nu.xom.Serializer
Custom
Serializer
with the sole purpose and functionality to not
output the XML declaration.- Author:
- egonw
- Source code:
- main
- Belongs to CDK module:
- libiocml
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a newCustomSerializer
using the matchingSerializer(OutputStream)
.CustomSerializer
(OutputStream out, String encoding) Instantiates a newCustomSerializer
using the matchingSerializer(OutputStream, String)
. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Overwrite theSerializer.writeXMLDeclaration()
method, and have it not output the XML declaration.Methods inherited from class nu.xom.Serializer
breakLine, flush, getColumnNumber, getEncoding, getIndent, getLineSeparator, getMaxLength, getPreserveBaseURI, getUnicodeNormalizationFormC, setIndent, setLineSeparator, setMaxLength, setOutputStream, setPreserveBaseURI, setUnicodeNormalizationFormC, write, write, write, write, write, write, write, writeAttributes, writeAttributeValue, writeChild, writeEmptyElementTag, writeEndTag, writeEscaped, writeNamespaceDeclaration, writeNamespaceDeclarations, writeRaw, writeStartTag
-
Constructor Details
-
CustomSerializer
Instantiates a newCustomSerializer
using the matchingSerializer(OutputStream)
.- Parameters:
out
- the output stream to write the document on
-
CustomSerializer
Instantiates a newCustomSerializer
using the matchingSerializer(OutputStream, String)
.- Parameters:
out
- the output stream to write the document onencoding
- the character encoding for the serialization- Throws:
UnsupportedEncodingException
-
-
Method Details
-
writeXMLDeclaration
Overwrite theSerializer.writeXMLDeclaration()
method, and have it not output the XML declaration.- Overrides:
writeXMLDeclaration
in classnu.xom.Serializer
- Throws:
IOException
-