public class XBTTree extends java.lang.Object implements UBStreamable
| Modifier and Type | Field and Description |
|---|---|
protected XBContext |
rootContext |
| Constructor and Description |
|---|
XBTTree(XBCatalog catalog)
Creates a new instance of XBTTree
|
XBTTree(XBCatalog catalog,
XBContext rootContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
XBTBlock |
findNodeByIndex(long index) |
int |
fromStreamUB(java.io.InputStream stream)
Method for reading values in UB Encoding from standard data stream.
|
XBCatalog |
getCatalog() |
XBTBlock |
getRootBlock() |
XBContext |
getRootContext() |
XBTTreeNode |
newNodeInstance(XBTTreeNode parent)
TODO: This is stub, because I'm to lazy to think about proper solution
|
void |
processSpec() |
void |
setCatalog(XBCatalog catalog) |
void |
setRootBlock(XBTTreeNode rootNode) |
void |
setRootContext(XBContext rootContext) |
int |
sizeUB()
Method for reading size of data which would be saved in data stream.
|
int |
toStreamUB(java.io.OutputStream stream)
Method for writting values in UB Encoding to standard data stream.
|
protected XBContext rootContext
public XBTTree(XBCatalog catalog)
public XBContext getRootContext()
public XBCatalog getCatalog()
public void setRootContext(XBContext rootContext)
public int fromStreamUB(java.io.InputStream stream)
throws java.io.IOException,
XBProcessingException
UBStreamablefromStreamUB in interface UBStreamablestream - Stream to readjava.io.IOExceptionXBProcessingExceptionpublic void setCatalog(XBCatalog catalog)
public void processSpec()
public XBTTreeNode newNodeInstance(XBTTreeNode parent)
public void clear()
public int toStreamUB(java.io.OutputStream stream)
throws java.io.IOException
UBStreamabletoStreamUB in interface UBStreamablestream - Stream to writejava.io.IOExceptionpublic int sizeUB()
UBStreamablesizeUB in interface UBStreamablepublic XBTBlock getRootBlock()
public void setRootBlock(XBTTreeNode rootNode)
public XBTBlock findNodeByIndex(long index)