public final class JsonMLSerializer extends JsonSerializer
atomic, form, sep
encoding, itemsep, out, sopts
Constructor and Description |
---|
JsonMLSerializer(OutputStream os,
SerializerOptions opts)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
atomic(Item value)
Serializes an atomic value.
|
protected void |
attribute(byte[] name,
byte[] value,
boolean standalone)
Serializes an attribute.
|
protected void |
finishClose()
Closes an element.
|
protected void |
finishEmpty()
Closes an empty element.
|
protected void |
finishOpen()
Finishes an opening element node.
|
protected void |
startOpen(QNm name)
Starts an element.
|
protected void |
text(byte[] value,
FTPos ftp)
Serializes a text.
|
close, function, print, serialize, string
characterMap, node, norm, printChar, reset
finished, indent, printChars, printHex, separate
closeDoc, closeElement, comment, get, get, namespace, nsUri, openDoc, openElement, pi, sc, skipElement, value
public JsonMLSerializer(OutputStream os, SerializerOptions opts) throws IOException
os
- output streamopts
- serialization parametersIOException
- I/O exceptionprotected void startOpen(QNm name) throws IOException
Serializer
startOpen
in class Serializer
name
- element nameIOException
- I/O exceptionprotected void attribute(byte[] name, byte[] value, boolean standalone) throws IOException
Serializer
attribute
in class Serializer
name
- namevalue
- valuestandalone
- standalone flagIOException
- I/O exceptionprotected void finishOpen() throws IOException
Serializer
finishOpen
in class Serializer
IOException
- I/O exceptionprotected 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 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 void atomic(Item value) throws IOException
Serializer
atomic
in class JsonSerializer
value
- itemIOException
- I/O exceptionCopyright © 2005–2023 BaseX Team. All rights reserved.