public final class DOTSerializer extends OutputSerializer
itemsep, out, sopts
Constructor and Description |
---|
DOTSerializer(OutputStream os,
boolean compact)
Constructor, defining colors for the dot output.
|
Modifier and Type | Method and Description |
---|---|
protected void |
atomic(Item it)
Serializes an atomic value.
|
protected void |
attribute(byte[] name,
byte[] value,
boolean standalone)
Serializes an attribute.
|
void |
close()
Closes the serializer.
|
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 |
pi(byte[] name,
byte[] value)
Serializes a processing instruction.
|
protected void |
startOpen(byte[] name)
Starts an element.
|
protected void |
text(byte[] value,
FTPos ftp)
Serializes a text.
|
finished, indent, itemsep, newline, reset
closeDoc, closeElement, function, get, get, ignore, namespace, node, nsUri, openDoc, openElement, serialize
public DOTSerializer(OutputStream os, boolean compact) throws IOException
os
- output streamcompact
- compact representationIOException
- I/O exceptionpublic void close() throws IOException
Serializer
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputSerializer
IOException
- I/O exceptionprotected void startOpen(byte[] name)
Serializer
startOpen
in class Serializer
name
- element nameprotected void attribute(byte[] name, byte[] value, boolean standalone)
Serializer
attribute
in class Serializer
name
- namevalue
- valuestandalone
- standalone flagprotected 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 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 comment(byte[] value) throws IOException
Serializer
comment
in class Serializer
value
- valueIOException
- I/O exceptionprotected void pi(byte[] name, byte[] value) throws IOException
Serializer
pi
in class Serializer
name
- namevalue
- valueIOException
- I/O exceptionprotected void atomic(Item it) throws IOException
Serializer
atomic
in class Serializer
it
- itemIOException
- I/O exceptionCopyright © 2005–2015 BaseX Team. All rights reserved.