public class XBTEmptyBlock extends java.lang.Object implements XBTBlock, XBPSequenceSerializable
| Constructor and Description |
|---|
XBTEmptyBlock() |
| Modifier and Type | Method and Description |
|---|---|
UBNatural |
getAttributeAt(int attributeIndex)
Gets attribute of given index.
|
XBAttribute[] |
getAttributes()
Gets array of attributes in order of appearance.
|
int |
getAttributesCount()
Gets count of attributes.
|
XBBlockData |
getBlockData()
Gets block data.
|
int |
getBlockIndex()
Gets block position in tree in depth-first scan.
|
long |
getBlockSize()
Gets block size.
|
XBBlockType |
getBlockType()
Gets block type.
|
java.io.InputStream |
getData()
Gets block data.
|
XBBlockDataMode |
getDataMode()
Returns whether this block is data block.
|
long |
getDataSize()
Gets data size.
|
static XBTEmptyBlock |
getEmptyBlock() |
XBTBlock |
getChildAt(int childIndex)
Gets children of given index.
|
XBTBlock[] |
getChildren()
Gets array of all children.
|
int |
getChildrenCount()
Gets count of children blocks.
|
XBTBlock |
getParent()
Gets parent block or null if block has no parent.
|
XBBlockTerminationMode |
getTerminationMode()
Returns whether this block is using sequence of children ended with
termination block.
|
void |
serializeXB(XBPSequenceSerialHandler serializationHandler)
Performs dual-way serialization to XBUP protocol.
|
public XBTBlock getParent()
XBTBlockpublic XBBlockTerminationMode getTerminationMode()
XBTBlockgetTerminationMode in interface XBTBlockpublic XBBlockDataMode getDataMode()
XBTBlockgetDataMode in interface XBTBlockpublic XBBlockType getBlockType()
XBTBlockgetBlockType in interface XBTBlockpublic XBAttribute[] getAttributes()
XBTBlockgetAttributes in interface XBTBlockpublic UBNatural getAttributeAt(int attributeIndex)
XBTBlockgetAttributeAt in interface XBTBlockattributeIndex - index of attributepublic int getAttributesCount()
XBTBlockgetAttributesCount in interface XBTBlockpublic XBTBlock[] getChildren()
XBTBlockgetChildren in interface XBTBlockpublic XBTBlock getChildAt(int childIndex)
XBTBlockgetChildAt in interface XBTBlockchildIndex - index of child blockpublic int getChildrenCount()
XBTBlockgetChildrenCount in interface XBTBlockpublic java.io.InputStream getData()
XBTBlockpublic XBBlockData getBlockData()
XBTBlockgetBlockData in interface XBTBlockpublic long getDataSize()
XBTBlockgetDataSize in interface XBTBlockpublic int getBlockIndex()
XBTBlockgetBlockIndex in interface XBTBlockpublic long getBlockSize()
XBTBlockgetBlockSize in interface XBTBlockpublic static XBTEmptyBlock getEmptyBlock()
public void serializeXB(XBPSequenceSerialHandler serializationHandler) throws XBProcessingException, java.io.IOException
XBPSequenceSerializableserializeXB in interface XBPSequenceSerializableserializationHandler - serialization resourceXBProcessingException - if proccesing problem encounteredjava.io.IOException - if input/output problem encountered