|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.data.Serializer
org.basex.data.DOTSerializer
public final class DOTSerializer
This class allows to output XML results via SAX.
Field Summary | |
---|---|
PrintOutput |
out
Output stream. |
Fields inherited from class org.basex.data.Serializer |
---|
dn, ns, tags |
Constructor Summary | |
---|---|
DOTSerializer(PrintOutput o)
Constructor, defining colors for the dot output. |
Method Summary | |
---|---|
void |
attribute(byte[] n,
byte[] v)
Serializes an attribute. |
void |
close(byte[] t)
Closes an element. |
void |
close(int s)
Finishes the serializer. |
void |
closeResult()
Closes a result. |
void |
comment(byte[] t)
Serializes a comment. |
void |
empty()
Finishes an empty element. |
void |
finish()
Finishes an element. |
void |
item(byte[] t)
Serializes an item. |
void |
open(int s)
Initializes the serializer. |
void |
openResult()
Starts a result. |
void |
pi(byte[] n,
byte[] v)
Serializes a processing instruction. |
void |
text(byte[] t)
Serializes a text. |
Methods inherited from class org.basex.data.Serializer |
---|
closeElement, emptyElement, emptyElement, emptyElement, finished, finishElement, namespace, node, openElement, openElement, pi, startElement, startElement |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final PrintOutput out
Constructor Detail |
---|
public DOTSerializer(PrintOutput o)
o
- output streamMethod Detail |
---|
public void open(int s) throws java.io.IOException
Serializer
open
in class Serializer
s
- number of results
java.io.IOException
- exceptionpublic void close(int s) throws java.io.IOException
Serializer
close
in class Serializer
s
- number of results
java.io.IOException
- exceptionpublic void openResult() throws java.io.IOException
Serializer
openResult
in class Serializer
java.io.IOException
- exceptionpublic void closeResult() throws java.io.IOException
Serializer
closeResult
in class Serializer
java.io.IOException
- exceptionpublic void attribute(byte[] n, byte[] v)
Serializer
attribute
in class Serializer
n
- namev
- valuepublic void empty() throws java.io.IOException
Serializer
java.io.IOException
- exceptionpublic void finish() throws java.io.IOException
Serializer
java.io.IOException
- exceptionpublic void close(byte[] t) throws java.io.IOException
Serializer
t
- tag
java.io.IOException
- exceptionpublic void text(byte[] t) throws java.io.IOException
Serializer
text
in class Serializer
t
- text bytes
java.io.IOException
- exceptionpublic void comment(byte[] t) throws java.io.IOException
Serializer
comment
in class Serializer
t
- comment
java.io.IOException
- exceptionpublic void pi(byte[] n, byte[] v) throws java.io.IOException
Serializer
pi
in class Serializer
n
- namev
- value
java.io.IOException
- exceptionpublic void item(byte[] t) throws java.io.IOException
Serializer
item
in class Serializer
t
- text bytes
java.io.IOException
- exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |