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.Serializer(OutputStream) . |
CustomSerializer(OutputStream out,
String encoding)
Instantiates a new
CustomSerializer using the matching
Serializer.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, writeStartTag
public CustomSerializer(OutputStream out)
CustomSerializer
using the matching
Serializer.Serializer(OutputStream)
.out
- the output stream to write the document onpublic CustomSerializer(OutputStream out, String encoding) throws UnsupportedEncodingException
CustomSerializer
using the matching
Serializer.Serializer(OutputStream, String)
.out
- the output stream to write the document onencoding
- the character encoding for the serializationUnsupportedEncodingException
protected void writeXMLDeclaration() throws IOException
Serializer.writeXMLDeclaration()
method, and have
it not output the XML declaration.writeXMLDeclaration
in class nu.xom.Serializer
IOException
Copyright © 2017. All Rights Reserved.