public class BuilderSerializer extends Serializer
| Constructor and Description |
|---|
BuilderSerializer(Builder b)
Constructor taking a Builder.
|
| Modifier and Type | Method and Description |
|---|---|
void |
attribute(byte[] n,
byte[] v)
Serializes an attribute.
|
protected void |
closeDoc()
Closes a document.
|
void |
finishAtomic(Item b)
Serializes an item.
|
protected void |
finishClose()
Closes an element.
|
void |
finishComment(byte[] b)
Serializes a comment.
|
protected void |
finishEmpty()
Closes an empty element.
|
protected void |
finishOpen()
Finishes an opening element node.
|
void |
finishPi(byte[] n,
byte[] v)
Serializes a processing instruction.
|
void |
finishText(byte[] b)
Serializes a text.
|
protected void |
openDoc(byte[] name)
Opens a document.
|
protected void |
startOpen(byte[] t)
Starts an element.
|
atomic, close, closeElement, closeResult, comment, emptyElement, emptyElement, finished, get, get, namespace, node, node, openElement, openElement, openResult, pi, reset, textpublic BuilderSerializer(Builder b)
b - builder to be usedpublic final void finishText(byte[] b)
throws java.io.IOException
SerializerfinishText in class Serializerb - valuejava.io.IOException - I/O exceptionprotected void startOpen(byte[] t)
throws java.io.IOException
SerializerstartOpen in class Serializert - tag namejava.io.IOException - I/O exceptionpublic final void finishPi(byte[] n,
byte[] v)
throws java.io.IOException
SerializerfinishPi in class Serializern - namev - valuejava.io.IOException - I/O exceptionpublic final void finishAtomic(Item b) throws java.io.IOException
SerializerfinishAtomic in class Serializerb - itemjava.io.IOException - I/O exceptionprotected final void finishOpen()
throws java.io.IOException
SerializerfinishOpen in class Serializerjava.io.IOException - I/O exceptionprotected void finishEmpty()
throws java.io.IOException
SerializerfinishEmpty in class Serializerjava.io.IOException - I/O exceptionprotected void finishClose()
throws java.io.IOException
SerializerfinishClose in class Serializerjava.io.IOException - I/O exceptionpublic final void finishComment(byte[] b)
throws java.io.IOException
SerializerfinishComment in class Serializerb - valuejava.io.IOException - I/O exceptionpublic final void attribute(byte[] n,
byte[] v)
throws java.io.IOException
Serializerattribute in class Serializern - namev - valuejava.io.IOException - I/O exceptionprotected void openDoc(byte[] name)
throws java.io.IOException
Serializername - namejava.io.IOException - I/O exceptionprotected final void closeDoc()
throws java.io.IOException
Serializerjava.io.IOException - I/O exception