|
||||||||||
| 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 exception| Method Detail |
|---|
public void openResult()
Serializer
openResult in class Serializerpublic void closeResult()
Serializer
closeResult in class Serializer
public void attribute(byte[] n,
byte[] v)
Serializer
attribute in class Serializern - namev - value
public void empty()
throws IOException
Serializer
IOException - I/O exception
public void finish()
throws IOException
Serializer
IOException - I/O exception
public void close(byte[] t)
throws IOException
Serializer
t - tag
IOException - I/O exception
public void text(byte[] t)
throws IOException
Serializer
text in class Serializert - text bytes
IOException - I/O exception
public void text(byte[] b,
FTPos ftp)
throws IOException
Serializer
text in class Serializerb - text bytesftp - full-text positions
IOException - I/O exception
public void comment(byte[] t)
throws IOException
Serializer
comment in class Serializert - comment
IOException - I/O exception
public void pi(byte[] n,
byte[] v)
throws IOException
Serializer
pi in class Serializern - namev - value
IOException - I/O exception
public void item(byte[] t)
throws IOException
Serializer
item in class Serializert - text bytes
IOException - I/O exception
public 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 | |||||||||