public class TinyBinary extends Object
| Modifier and Type | Field and Description |
|---|---|
static byte |
CURRENT_FORMAT |
| Constructor and Description |
|---|
TinyBinary(byte[] buf)
To read a TinyTree from a byte array in which characters are encoded as they are in
Java (ie 16-bit values for normal chars, 32-bit for those in the supplemental planes)
|
TinyBinary(byte[] buf,
Charset charset)
To read a TinyTree from a byte array in which characters are encoded according to the
given Charset.
|
TinyBinary(net.sf.saxon.tree.tiny.TinyTree tree) |
TinyBinary(net.sf.saxon.tree.tiny.TinyTree tree,
Charset charset) |
TinyBinary(net.sf.saxon.tree.tiny.TinyTree tree,
Charset charset,
byte formatVersion) |
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
getByteBuffer() |
byte[] |
getBytes() |
net.sf.saxon.tree.tiny.TinyDocumentImpl |
getTinyDocument(net.sf.saxon.Configuration config) |
int |
length() |
public static final byte CURRENT_FORMAT
public TinyBinary(byte[] buf)
buf - a byte array containing a binary-encoded tiny tree.public TinyBinary(byte[] buf,
Charset charset)
buf - a byte array containing a binary-encoded tiny tree.charset - the charset that defines a mapping between characters (unicode code points)
and bytes.public TinyBinary(net.sf.saxon.tree.tiny.TinyTree tree)
public TinyBinary(net.sf.saxon.tree.tiny.TinyTree tree,
Charset charset)
public TinyBinary(net.sf.saxon.tree.tiny.TinyTree tree,
Charset charset,
byte formatVersion)
public net.sf.saxon.tree.tiny.TinyDocumentImpl getTinyDocument(net.sf.saxon.Configuration config)
public ByteBuffer getByteBuffer()
public byte[] getBytes()
public int length()
Copyright © 2013. All Rights Reserved.