public class BuilderSerializer extends Serializer
| Constructor and Description |
|---|
BuilderSerializer(Builder b)
Constructor taking a Builder.
|
| Modifier and Type | Method and Description |
|---|---|
void |
atomic(Item b)
Serializes an atomic value.
|
void |
attribute(byte[] n,
byte[] v)
Serializes an attribute.
|
void |
closeDoc()
Closes a document.
|
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.
|
void |
openDoc(byte[] name)
Opens a document.
|
protected void |
startOpen(byte[] t)
Starts an element.
|
close, closeElement, closeResult, finished, finishText, get, get, namespace, openResult, reset, serialize, serialize, startElementpublic 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 atomic(Item b) throws java.io.IOException
Serializeratomic 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 exceptionpublic void openDoc(byte[] name)
throws java.io.IOException
SerializeropenDoc in class Serializername - namejava.io.IOException - I/O exceptionpublic final void closeDoc()
throws java.io.IOException
SerializercloseDoc in class Serializerjava.io.IOException - I/O exception