public class TinyBinary extends Object
| 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) |
| 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 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 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.