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 |
attribute(byte[] n,
byte[] v)
Serializes an attribute.
|
void |
close()
Closes the serializer.
|
void |
finishAtomic(Item it)
Serializes an item.
|
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 byte[] |
info(ExprInfo expr)
Returns the name of the specified expression.
|
protected void |
startOpen(byte[] t)
Starts an element.
|
closeResult, finished, finishText, openResult, resetatomic, closeElement, comment, emptyElement, emptyElement, get, get, namespace, node, node, openElement, openElement, pi, textpublic 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 finishAtomic(Item it) throws java.io.IOException
SerializerfinishAtomic in class OutputSerializerit - itemjava.io.IOException - I/O exceptionpublic void close()
throws java.io.IOException
Serializerclose in class OutputSerializerjava.io.IOException - I/O exceptionprotected byte[] info(ExprInfo expr)
Serializerexpr - expression