public class BuilderSerializer extends Serializer
Constructor and Description |
---|
BuilderSerializer(Builder builder)
Constructor taking a Builder.
|
Modifier and Type | Method and Description |
---|---|
protected void |
attribute(byte[] name,
byte[] value,
boolean standalone)
Serializes an attribute.
|
protected void |
closeDoc()
Closes a document.
|
protected void |
comment(byte[] value)
Serializes a comment.
|
protected void |
finishClose()
Closes an element.
|
protected void |
finishEmpty()
Closes an empty element.
|
protected void |
finishOpen()
Finishes an opening element node.
|
protected void |
openDoc(byte[] name)
Opens a document.
|
protected void |
pi(byte[] name,
byte[] value)
Serializes a processing instruction.
|
protected void |
text(byte[] value,
FTPos ftp)
Serializes a text.
|
public BuilderSerializer(Builder builder)
builder
- builder to be usedprotected final void text(byte[] value, FTPos ftp) throws IOException
Serializer
text
in class Serializer
value
- valueftp
- full-text positions, used for visualization highlightingIOException
- I/O exceptionprotected final void pi(byte[] name, byte[] value) throws IOException
Serializer
pi
in class Serializer
name
- namevalue
- valueIOException
- I/O exceptionprotected final void finishOpen() throws IOException
Serializer
finishOpen
in class Serializer
IOException
- I/O exceptionprotected void finishEmpty() throws IOException
Serializer
finishEmpty
in class Serializer
IOException
- I/O exceptionprotected void finishClose() throws IOException
Serializer
finishClose
in class Serializer
IOException
- I/O exceptionprotected final void comment(byte[] value) throws IOException
Serializer
comment
in class Serializer
value
- valueIOException
- I/O exceptionprotected final void attribute(byte[] name, byte[] value, boolean standalone)
Serializer
attribute
in class Serializer
name
- namevalue
- valuestandalone
- standalone flagprotected void openDoc(byte[] name) throws IOException
Serializer
openDoc
in class Serializer
name
- nameIOException
- I/O exceptionprotected final void closeDoc() throws IOException
Serializer
closeDoc
in class Serializer
IOException
- I/O exceptionCopyright © 2005–2015 BaseX Team. All rights reserved.