public final class AdaptiveSerializer extends OutputSerializer
itemsep, out, sopts
Constructor and Description |
---|
AdaptiveSerializer(PrintOutput out,
SerializerOptions sopts)
Constructor, specifying serialization options.
|
Modifier and Type | Method and Description |
---|---|
protected void |
atomic(Item item)
Serializes an atomic value.
|
void |
close()
Closes the serializer.
|
protected void |
function(FItem item)
Serializes a function item.
|
protected void |
node(ANode item)
Serializes the specified node.
|
void |
serialize(Item item)
Serializes the specified item, which may be a node or an atomic value.
|
void |
serialize(Value value)
Serializes a value.
|
finished, indent, itemsep, newline, reset
attribute, closeDoc, closeElement, comment, finishClose, finishEmpty, finishOpen, get, get, ignore, namespace, nsUri, openDoc, openElement, pi, startOpen, text
public AdaptiveSerializer(PrintOutput out, SerializerOptions sopts) throws IOException
out
- print outputsopts
- serialization parametersIOException
- I/O exceptionpublic void serialize(Value value) throws IOException
value
- valueIOException
- I/O exceptionpublic void serialize(Item item) throws IOException
Serializer
serialize
in class Serializer
item
- item to be serializedIOException
- I/O exceptionprotected void node(ANode item) throws IOException
Serializer
node
in class Serializer
item
- node to be serializedIOException
- I/O exceptionprotected void function(FItem item) throws IOException
Serializer
function
in class Serializer
item
- itemIOException
- I/O exceptionprotected void atomic(Item item) throws IOException
Serializer
atomic
in class Serializer
item
- itemIOException
- I/O exceptionpublic void close() throws IOException
Serializer
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputSerializer
IOException
- I/O exceptionCopyright © 2005–2015 BaseX Team. All rights reserved.