public class XBTreeDocument extends XBTree implements XBEditableDocument, UBStreamable
| Constructor and Description |
|---|
XBTreeDocument()
Creates a new instance of XBTreeDocument
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear all data in this document
|
int |
fromFileUB() |
int |
fromStreamUB(java.io.InputStream stream)
Method for reading values in UB Encoding from standard data stream.
|
long |
getDocumentSize()
Get size of the whole document.
|
java.io.InputStream |
getExtended()
Get extended data area.
|
byte[] |
getExtendedArray() |
long |
getExtendedSize()
Get size of extended data area.
|
java.lang.String |
getFileName() |
void |
setExtended(java.io.InputStream source)
Set extended data area.
|
void |
setFileName(java.lang.String fileName) |
void |
setModified(boolean modified) |
void |
setRootBlock(XBBlock block)
Set root block of the document.
|
int |
sizeUB()
Method for reading size of data which would be saved in data stream.
|
int |
toFileUB() |
int |
toStreamUB(java.io.OutputStream stream)
Method for writting values in UB Encoding to standard data stream.
|
boolean |
wasModified() |
findNodeByIndex, getRootBlock, newNodeInstance, setRootBlockclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindNodeByIndexgetRootBlockpublic int toStreamUB(java.io.OutputStream stream)
throws java.io.IOException
UBStreamabletoStreamUB in interface UBStreamabletoStreamUB in class XBTreestream - Stream to writejava.io.IOExceptionpublic int fromStreamUB(java.io.InputStream stream)
throws java.io.IOException,
XBProcessingException
UBStreamablefromStreamUB in interface UBStreamablefromStreamUB in class XBTreestream - Stream to readjava.io.IOExceptionXBProcessingExceptionpublic int sizeUB()
UBStreamablesizeUB in interface UBStreamablesizeUB in class XBTreepublic java.io.InputStream getExtended()
XBDocumentgetExtended in interface XBDocumentpublic byte[] getExtendedArray()
public void setExtended(java.io.InputStream source)
XBEditableDocumentsetExtended in interface XBEditableDocumentsource - InputStream to use as data source for this document.public long getExtendedSize()
XBDocumentgetExtendedSize in interface XBDocumentpublic void clear()
XBEditableDocumentclear in interface XBEditableDocumentclear in class XBTreepublic void setRootBlock(XBBlock block) throws XBProcessingException
XBEditableDocumentsetRootBlock in interface XBEditableDocumentblock - the block to use as root block for this document.XBProcessingExceptionpublic boolean wasModified()
public void setModified(boolean modified)
public java.lang.String getFileName()
public void setFileName(java.lang.String fileName)
public int fromFileUB()
throws java.io.IOException,
XBProcessingException
java.io.IOExceptionXBProcessingExceptionpublic int toFileUB()
throws java.io.IOException
java.io.IOExceptionpublic long getDocumentSize()
XBDocumentgetDocumentSize in interface XBDocument