|
||||||||||
| 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 stream| Method Detail |
|---|
public void open(int s)
throws java.io.IOException
Serializer
open in class Serializers - number of results
java.io.IOException - exception
public void close(int s)
throws java.io.IOException
Serializer
close in class Serializers - number of results
java.io.IOException - exception
public void openResult()
throws java.io.IOException
Serializer
openResult in class Serializerjava.io.IOException - exception
public void closeResult()
throws java.io.IOException
Serializer
closeResult in class Serializerjava.io.IOException - exception
public void attribute(byte[] n,
byte[] v)
Serializer
attribute in class Serializern - namev - value
public void empty()
throws java.io.IOException
Serializer
java.io.IOException - exception
public void finish()
throws java.io.IOException
Serializer
java.io.IOException - exception
public void close(byte[] t)
throws java.io.IOException
Serializer
t - tag
java.io.IOException - exception
public void text(byte[] t)
throws java.io.IOException
Serializer
text in class Serializert - text bytes
java.io.IOException - exception
public void comment(byte[] t)
throws java.io.IOException
Serializer
comment in class Serializert - comment
java.io.IOException - exception
public void pi(byte[] n,
byte[] v)
throws java.io.IOException
Serializer
pi in class Serializern - namev - value
java.io.IOException - exception
public void item(byte[] t)
throws java.io.IOException
Serializer
item in class Serializert - text bytes
java.io.IOException - exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||