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

    Constructors
    Constructor
    Description
    Instantiates a new CustomSerializer using the matching Serializer(OutputStream).
    Instantiates a new CustomSerializer using the matching Serializer(OutputStream, String).
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    Overwrite the Serializer.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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • writeXMLDeclaration

      protected void writeXMLDeclaration() throws IOException
      Overwrite the Serializer.writeXMLDeclaration() method, and have it not output the XML declaration.
      Overrides:
      writeXMLDeclaration in class nu.xom.Serializer
      Throws:
      IOException