|
||||||||||
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 |
---|
Fields inherited from class org.basex.data.Serializer |
---|
dn, ns |
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 |
closeResult()
Closes a result. |
void |
cls()
Closes the serializer. |
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 |
openResult()
Starts a result. |
void |
pi(byte[] n,
byte[] v)
Serializes a processing instruction. |
void |
text(byte[] t)
Serializes a text. |
void |
text(byte[] b,
FTPos ftp)
Serializes a text. |
Methods inherited from class org.basex.data.Serializer |
---|
close, closeElement, emptyElement, emptyElement, finished, level, namespace, node, node, openElement, openElement |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DOTSerializer(PrintOutput o) throws IOException
o
- output stream
IOException
- I/O exceptionMethod Detail |
---|
public void openResult()
Serializer
openResult
in class Serializer
public void closeResult()
Serializer
closeResult
in class Serializer
public void attribute(byte[] n, byte[] v)
Serializer
attribute
in class Serializer
n
- namev
- valuepublic void empty() throws IOException
Serializer
IOException
- I/O exceptionpublic void finish() throws IOException
Serializer
IOException
- I/O exceptionpublic void close(byte[] t) throws IOException
Serializer
t
- tag
IOException
- I/O exceptionpublic void text(byte[] t) throws IOException
Serializer
text
in class Serializer
t
- text bytes
IOException
- I/O exceptionpublic void text(byte[] b, FTPos ftp) throws IOException
Serializer
text
in class Serializer
b
- text bytesftp
- full-text positions
IOException
- I/O exceptionpublic void comment(byte[] t) throws IOException
Serializer
comment
in class Serializer
t
- comment
IOException
- I/O exceptionpublic void pi(byte[] n, byte[] v) throws IOException
Serializer
pi
in class Serializer
n
- namev
- value
IOException
- I/O exceptionpublic void item(byte[] t) throws IOException
Serializer
item
in class Serializer
t
- text bytes
IOException
- I/O exceptionpublic void cls() throws IOException
Serializer
IOException
- I/O exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |