public final class DOTSerializer extends OutputSerializer
| Constructor and Description |
|---|
DOTSerializer(java.io.OutputStream os,
boolean c)
Constructor, defining colors for the dot output.
|
| Modifier and Type | Method and Description |
|---|---|
void |
atomic(Item it)
Serializes an atomic value.
|
void |
attribute(byte[] n,
byte[] v)
Serializes an attribute.
|
void |
close()
Closes the serializer.
|
protected void |
finishClose()
Closes an element.
|
void |
finishComment(byte[] t)
Serializes a comment.
|
protected void |
finishEmpty()
Closes an empty element.
|
protected void |
finishOpen()
Finishes an opening element node.
|
void |
finishPi(byte[] n,
byte[] v)
Serializes a processing instruction.
|
void |
finishText(byte[] t)
Serializes a text.
|
protected void |
startOpen(byte[] t)
Starts an element.
|
closeResult, code, ct, doctype, finished, finishText, hex, indent, openDoc, openResult, print, print, print, printChar, resetcloseDoc, closeElement, get, get, namespace, serialize, serialize, startElementpublic DOTSerializer(java.io.OutputStream os,
boolean c)
throws java.io.IOException
os - output streamc - compact representationjava.io.IOException - I/O exceptionprotected void startOpen(byte[] t)
SerializerstartOpen in class OutputSerializert - tag namepublic void attribute(byte[] n,
byte[] v)
Serializerattribute in class OutputSerializern - namev - valueprotected void finishOpen()
throws java.io.IOException
SerializerfinishOpen in class OutputSerializerjava.io.IOException - I/O exceptionprotected void finishEmpty()
throws java.io.IOException
SerializerfinishEmpty in class OutputSerializerjava.io.IOException - I/O exceptionprotected void finishClose()
throws java.io.IOException
SerializerfinishClose in class OutputSerializerjava.io.IOException - I/O exceptionpublic void finishText(byte[] t)
throws java.io.IOException
SerializerfinishText in class OutputSerializert - valuejava.io.IOException - I/O exceptionpublic void finishComment(byte[] t)
throws java.io.IOException
SerializerfinishComment in class OutputSerializert - valuejava.io.IOException - I/O exceptionpublic void finishPi(byte[] n,
byte[] v)
throws java.io.IOException
SerializerfinishPi in class OutputSerializern - namev - valuejava.io.IOException - I/O exceptionpublic void atomic(Item it) throws java.io.IOException
Serializeratomic in class OutputSerializerit - itemjava.io.IOException - I/O exceptionpublic void close()
throws java.io.IOException
Serializerclose in class OutputSerializerjava.io.IOException - I/O exception