public class CustomSerializer
extends nu.xom.Serializer
Serializer with the sole purpose and functionality to not
output the XML declaration.| Constructor and Description |
|---|
CustomSerializer(OutputStream out)
Instantiates a new
CustomSerializer using the matching
Serializer(OutputStream). |
CustomSerializer(OutputStream out,
String encoding)
Instantiates a new
CustomSerializer using the matching
Serializer(OutputStream, String). |
| Modifier and Type | Method and Description |
|---|---|
protected void |
writeXMLDeclaration()
Overwrite the
Serializer.writeXMLDeclaration() method, and have
it not output the XML declaration. |
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, writeStartTagpublic CustomSerializer(OutputStream out)
CustomSerializer using the matching
Serializer(OutputStream).out - the output stream to write the document onpublic CustomSerializer(OutputStream out, String encoding) throws UnsupportedEncodingException
CustomSerializer using the matching
Serializer(OutputStream, String).out - the output stream to write the document onencoding - the character encoding for the serializationUnsupportedEncodingExceptionprotected void writeXMLDeclaration()
throws IOException
Serializer.writeXMLDeclaration() method, and have
it not output the XML declaration.writeXMLDeclaration in class nu.xom.SerializerIOExceptionCopyright © 2021. All rights reserved.