|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.basex.data.Serializer
public abstract class Serializer
This is an interface for serializing XML results.
| Field Summary | |
|---|---|
byte[] |
dn
Current default namespace. |
Atts |
ns
Namespaces. |
TokenList |
tags
Opened tags. |
| Constructor Summary | |
|---|---|
Serializer()
|
|
| Method Summary | |
|---|---|
abstract void |
attribute(byte[] n,
byte[] v)
Serializes an attribute. |
abstract void |
close(int s)
Finishes the serializer. |
void |
closeElement()
Closes an element. |
abstract void |
closeResult()
Closes a result. |
abstract void |
comment(byte[] b)
Serializes a comment. |
void |
emptyElement()
Finishes a new element node. |
void |
emptyElement(byte[] t,
byte[]... a)
Opens and closes an empty element. |
void |
emptyElement(ExprInfo expr,
byte[]... a)
Opens and closes an empty element. |
boolean |
finished()
Tests if the serialization was interrupted. |
void |
finishElement()
Finishes a new element node. |
abstract void |
item(byte[] b)
Serializes an item. |
void |
namespace(byte[] n,
byte[] v)
Serializes a namespace. |
int |
node(Data data,
int pre)
Serializes a node of the specified data reference. |
abstract void |
open(int s)
Initializes the serializer. |
void |
openElement(byte[] t,
byte[]... a)
Opens an element. |
void |
openElement(ExprInfo expr,
byte[]... a)
Opens an element. |
abstract void |
openResult()
Starts a result. |
void |
pi(byte[] c)
Serializes a processing instruction. |
abstract void |
pi(byte[] n,
byte[] v)
Serializes a processing instruction. |
void |
startElement(byte[] t)
Starts a new element node. |
void |
startElement(ExprInfo expr)
Starts a new element node. |
abstract void |
text(byte[] b)
Serializes a text. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public Atts ns
public TokenList tags
public byte[] dn
| Constructor Detail |
|---|
public Serializer()
| Method Detail |
|---|
public abstract void open(int s)
throws java.io.IOException
s - number of results
java.io.IOException - exception
public abstract void close(int s)
throws java.io.IOException
s - number of results
java.io.IOException - exception
public abstract void openResult()
throws java.io.IOException
java.io.IOException - exception
public abstract void closeResult()
throws java.io.IOException
java.io.IOException - exception
public abstract void attribute(byte[] n,
byte[] v)
throws java.io.IOException
n - namev - value
java.io.IOException - exception
public abstract void text(byte[] b)
throws java.io.IOException
b - text bytes
java.io.IOException - exception
public abstract void comment(byte[] b)
throws java.io.IOException
b - comment
java.io.IOException - exception
public abstract void pi(byte[] n,
byte[] v)
throws java.io.IOException
n - namev - value
java.io.IOException - exception
public abstract void item(byte[] b)
throws java.io.IOException
b - text bytes
java.io.IOException - exception
public final void startElement(ExprInfo expr)
throws java.io.IOException
expr - expression info
java.io.IOException - exception
public final void startElement(byte[] t)
throws java.io.IOException
t - tag
java.io.IOException - exception
public final void openElement(ExprInfo expr,
byte[]... a)
throws java.io.IOException
expr - expression infoa - attributes
java.io.IOException - exception
public final void openElement(byte[] t,
byte[]... a)
throws java.io.IOException
t - taga - attributes
java.io.IOException - exception
public final void namespace(byte[] n,
byte[] v)
throws java.io.IOException
n - namev - value
java.io.IOException - exception
public final void emptyElement(ExprInfo expr,
byte[]... a)
throws java.io.IOException
expr - expression infoa - attributes
java.io.IOException - exception
public final void emptyElement(byte[] t,
byte[]... a)
throws java.io.IOException
t - taga - attributes
java.io.IOException - exception
public final void emptyElement()
throws java.io.IOException
java.io.IOException - exception
public final void finishElement()
throws java.io.IOException
java.io.IOException - exception
public final void closeElement()
throws java.io.IOException
java.io.IOException - exception
public final void pi(byte[] c)
throws java.io.IOException
c - content
java.io.IOException - exceptionpublic boolean finished()
public final int node(Data data,
int pre)
throws java.io.IOException
data - data referencepre - pre value to start from
java.io.IOException - exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||