|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.io.serial.Serializer
org.basex.io.serial.BuilderSerializer
public class BuilderSerializer
A serializer that pipes the events directly through to a builder.
Field Summary |
---|
Fields inherited from class org.basex.io.serial.Serializer |
---|
elem, indent, level, PROPS, tags, undecl |
Constructor Summary | |
---|---|
BuilderSerializer(Builder b)
Constructor taking a Builder. |
Method Summary | |
---|---|
protected void |
atomic(Item b)
Serializes an atomic value. |
protected void |
attribute(byte[] n,
byte[] v)
Serializes an attribute. |
protected void |
closeDoc()
Closes a document. |
protected void |
finishClose()
Closes an element. |
protected void |
finishComment(byte[] b)
Serializes a comment. |
protected void |
finishEmpty()
Closes an empty element. |
protected void |
finishOpen()
Finishes an opening element node. |
protected void |
finishPi(byte[] n,
byte[] v)
Serializes a processing instruction. |
protected void |
finishText(byte[] b)
Serializes a text. |
protected void |
openDoc(byte[] name)
Opens a document. |
protected void |
startOpen(byte[] t)
Starts an element. |
Methods inherited from class org.basex.io.serial.Serializer |
---|
close, closeElement, closeResult, finished, finishText, get, get, namespace, nsUri, openResult, reset, serialize, startElement |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BuilderSerializer(Builder b)
b
- builder to be usedMethod Detail |
---|
protected final void finishText(byte[] b) throws java.io.IOException
Serializer
finishText
in class Serializer
b
- value
java.io.IOException
- I/O exceptionprotected void startOpen(byte[] t) throws java.io.IOException
Serializer
startOpen
in class Serializer
t
- tag name
java.io.IOException
- I/O exceptionprotected final void finishPi(byte[] n, byte[] v) throws java.io.IOException
Serializer
finishPi
in class Serializer
n
- namev
- value
java.io.IOException
- I/O exceptionprotected final void atomic(Item b) throws java.io.IOException
Serializer
atomic
in class Serializer
b
- item
java.io.IOException
- I/O exceptionprotected final void finishOpen() throws java.io.IOException
Serializer
finishOpen
in class Serializer
java.io.IOException
- I/O exceptionprotected void finishEmpty() throws java.io.IOException
Serializer
finishEmpty
in class Serializer
java.io.IOException
- I/O exceptionprotected void finishClose() throws java.io.IOException
Serializer
finishClose
in class Serializer
java.io.IOException
- I/O exceptionprotected final void finishComment(byte[] b) throws java.io.IOException
Serializer
finishComment
in class Serializer
b
- value
java.io.IOException
- I/O exceptionprotected final void attribute(byte[] n, byte[] v) throws java.io.IOException
Serializer
attribute
in class Serializer
n
- namev
- value
java.io.IOException
- I/O exceptionprotected void openDoc(byte[] name) throws java.io.IOException
Serializer
openDoc
in class Serializer
name
- name
java.io.IOException
- I/O exceptionprotected final void closeDoc() throws java.io.IOException
Serializer
closeDoc
in class Serializer
java.io.IOException
- I/O exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |