Class XBTEmptyBlock

    • Constructor Detail

      • XBTEmptyBlock

        public XBTEmptyBlock()
    • Method Detail

      • getParentBlock

        @Nonnull
        public java.util.Optional<XBTBlock> getParentBlock()
        Description copied from interface: XBTBlock
        Gets parent block or null if block has no parent.
        Specified by:
        getParentBlock in interface XBTBlock
        Returns:
        parent block
      • getTerminationMode

        public XBBlockTerminationMode getTerminationMode()
        Description copied from interface: XBTBlock
        Returns whether this block is using sequence of children ended with termination block.
        Specified by:
        getTerminationMode in interface XBTBlock
        Returns:
        terminated mode
      • getAttributes

        public XBAttribute[] getAttributes()
        Description copied from interface: XBTBlock
        Gets array of attributes in order of appearance.
        Specified by:
        getAttributes in interface XBTBlock
        Returns:
        array of attributes
      • getAttributeAt

        public UBNatural getAttributeAt​(int attributeIndex)
        Description copied from interface: XBTBlock
        Gets attribute of given index. Returns zero if attribute index greater than attributes count.
        Specified by:
        getAttributeAt in interface XBTBlock
        Parameters:
        attributeIndex - index of attribute
        Returns:
        attribute value
      • getAttributesCount

        public int getAttributesCount()
        Description copied from interface: XBTBlock
        Gets count of attributes.
        Specified by:
        getAttributesCount in interface XBTBlock
        Returns:
        count of attributes
      • getChildren

        public XBTBlock[] getChildren()
        Description copied from interface: XBTBlock
        Gets array of all children.
        Specified by:
        getChildren in interface XBTBlock
        Returns:
        array of child blocks
      • getChildAt

        public XBTBlock getChildAt​(int childIndex)
        Description copied from interface: XBTBlock
        Gets children of given index. If no child for given index exist, return null.
        Specified by:
        getChildAt in interface XBTBlock
        Parameters:
        childIndex - index of child block
        Returns:
        child block
      • getChildrenCount

        public int getChildrenCount()
        Description copied from interface: XBTBlock
        Gets count of children blocks.
        Specified by:
        getChildrenCount in interface XBTBlock
        Returns:
        count of children
      • getData

        @Nonnull
        public java.io.InputStream getData()
        Description copied from interface: XBTBlock
        Gets block data.
        Specified by:
        getData in interface XBTBlock
        Returns:
        block data or throws invalid operation on non-data block
      • getBlockData

        @Nonnull
        public org.exbin.auxiliary.paged_data.BinaryData getBlockData()
        Description copied from interface: XBTBlock
        Gets block data.
        Specified by:
        getBlockData in interface XBTBlock
        Returns:
        block data or throws invalid operation on non-data block