|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.io.serial.Serializer
org.basex.io.serial.OutputSerializer
org.basex.io.serial.DOTSerializer
public final class DOTSerializer
This class serializes data in the DOT syntax.
Field Summary |
---|
Fields inherited from class org.basex.io.serial.OutputSerializer |
---|
content, ct, docsys, escape, html5, indents, isep, nl, out, saomit, script, sep, tab |
Fields inherited from class org.basex.io.serial.Serializer |
---|
elem, indent, level, PROPS, tags, undecl |
Constructor Summary | |
---|---|
DOTSerializer(java.io.OutputStream os,
boolean c)
Constructor, defining colors for the dot output. |
Method Summary | |
---|---|
protected void |
atomic(Item it)
Serializes an atomic value. |
protected void |
attribute(byte[] n,
byte[] v)
Serializes an attribute. |
void |
close()
Closes the serializer. |
protected void |
finishClose()
Closes an element. |
protected void |
finishComment(byte[] t)
Serializes a comment. |
protected void |
finishEmpty()
Closes an empty element. |
protected void |
finishOpen()
Finishes an opening element node. |
protected void |
finishPi(byte[] n,
byte[] v)
Serializes a processing instruction. |
protected void |
finishText(byte[] t)
Serializes a text. |
protected void |
startOpen(byte[] t)
Starts an element. |
Methods inherited from class org.basex.io.serial.OutputSerializer |
---|
closeResult, code, ct, doctype, finished, finishText, hex, indent, openDoc, openResult, print, print, print, printChar, reset |
Methods inherited from class org.basex.io.serial.Serializer |
---|
closeDoc, closeElement, get, get, namespace, nsUri, serialize, startElement |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DOTSerializer(java.io.OutputStream os, boolean c) throws java.io.IOException
os
- output streamc
- compact representation
java.io.IOException
- I/O exceptionMethod Detail |
---|
public void close() throws java.io.IOException
Serializer
close
in class OutputSerializer
java.io.IOException
- I/O exceptionprotected void startOpen(byte[] t)
Serializer
startOpen
in class OutputSerializer
t
- tag nameprotected void attribute(byte[] n, byte[] v)
Serializer
attribute
in class OutputSerializer
n
- namev
- valueprotected void finishOpen() throws java.io.IOException
Serializer
finishOpen
in class OutputSerializer
java.io.IOException
- I/O exceptionprotected void finishEmpty() throws java.io.IOException
Serializer
finishEmpty
in class OutputSerializer
java.io.IOException
- I/O exceptionprotected void finishClose() throws java.io.IOException
Serializer
finishClose
in class OutputSerializer
java.io.IOException
- I/O exceptionprotected void finishText(byte[] t) throws java.io.IOException
Serializer
finishText
in class OutputSerializer
t
- value
java.io.IOException
- I/O exceptionprotected void finishComment(byte[] t) throws java.io.IOException
Serializer
finishComment
in class OutputSerializer
t
- value
java.io.IOException
- I/O exceptionprotected void finishPi(byte[] n, byte[] v) throws java.io.IOException
Serializer
finishPi
in class OutputSerializer
n
- namev
- value
java.io.IOException
- I/O exceptionprotected void atomic(Item it) throws java.io.IOException
Serializer
atomic
in class OutputSerializer
it
- item
java.io.IOException
- I/O exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |