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
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a newCustomSerializerusing the matchingSerializer(OutputStream).CustomSerializer(OutputStream out, String encoding) Instantiates a newCustomSerializerusing the matchingSerializer(OutputStream, String). -
Method Summary
Modifier and TypeMethodDescriptionprotected voidOverwrite 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 newCustomSerializerusing the matchingSerializer(OutputStream).- Parameters:
out- the output stream to write the document on
-
CustomSerializer
Instantiates a newCustomSerializerusing 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:
writeXMLDeclarationin classnu.xom.Serializer- Throws:
IOException
-