|
||||||||||
| 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 | |
|---|---|
static boolean |
COMPACT
Compact flag. |
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()
Finishes the serializer. |
void |
close(byte[] t)
Closes an element. |
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 |
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,
int[][] ftd,
TokenList ial)
Serializes a text. |
| Methods inherited from class org.basex.data.Serializer |
|---|
closeElement, emptyElement, finished, namespace, node, node, openElement, openElement |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final boolean COMPACT
public final PrintOutput out
| Constructor Detail |
|---|
public DOTSerializer(PrintOutput o)
throws java.io.IOException
o - output stream
java.io.IOException - exception| Method Detail |
|---|
public void close()
throws java.io.IOException
Serializer
close in class Serializerjava.io.IOException - exceptionpublic 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 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 text(byte[] b,
int[][] ftd,
TokenList ial)
throws java.io.IOException
Serializer
text in class Serializerb - text bytesftd - fulltext positionsial - fulltext ftand colorinfo
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 | |||||||||