java.lang.Object
io.sf.carte.echosvg.svggen.CompactXmlSerializer
- All Implemented Interfaces:
XmlSerializer
Compact SVG serialization.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidserializeXML(Node node, Writer writer, boolean escaped) Serialize the given XML node to the given writer.voidwriteDocumentType(Writer out, String name, String publicId, String systemId) Serialize a document type with the given identifiers.
-
Constructor Details
-
CompactXmlSerializer
public CompactXmlSerializer()
-
-
Method Details
-
serializeXML
public void serializeXML(Node node, Writer writer, boolean escaped) throws IOException, SVGGraphics2DRuntimeException Description copied from interface:XmlSerializerSerialize the given XML node to the given writer.Callers of this method should catch
RuntimeExceptionin addition to theSVGGraphics2DRuntimeException.- Specified by:
serializeXMLin interfaceXmlSerializer- Parameters:
node- the node to serialize.writer- the writer to write the serialization output.escaped- defines if the characters in Text nodes and attribute values should be escaped.- Throws:
IOException- if an I/O error occurs.SVGGraphics2DRuntimeException- or other runtime exception if the node hierarchy is inconsistent or contains unknown nodes.
-
writeDocumentType
public void writeDocumentType(Writer out, String name, String publicId, String systemId) throws IOException Description copied from interface:XmlSerializerSerialize a document type with the given identifiers.- Specified by:
writeDocumentTypein interfaceXmlSerializer- Parameters:
out- the writer to write the serialization output.name- the document type name.publicId- the public identifier, ornullif none.systemId- the system identifier, ornullif none.- Throws:
IOException- if an I/O error occurs.
-