Class XBEmptyBlock

    • Constructor Detail

      • XBEmptyBlock

        public XBEmptyBlock()
    • Method Detail

      • getParentBlock

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

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

        @Nonnull
        public XBBlockDataMode getDataMode()
        Description copied from interface: XBBlock
        Returns mode whether this block is data block.
        Specified by:
        getDataMode in interface XBBlock
        Returns:
        data mode
      • getAttributes

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

        @Nullable
        public UBNatural getAttributeAt​(int attributeIndex)
        Description copied from interface: XBBlock
        Gets attribute of given index / order.
        Specified by:
        getAttributeAt in interface XBBlock
        Parameters:
        attributeIndex - index/order of attribute
        Returns:
        attribute value
      • getAttributesCount

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

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

        @Nullable
        public XBBlock getChildAt​(int childIndex)
        Description copied from interface: XBBlock
        Gets child block of given index.
        Specified by:
        getChildAt in interface XBBlock
        Parameters:
        childIndex - index of child block
        Returns:
        child block
      • getChildrenCount

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

        @Nonnull
        public java.io.InputStream getData()
        Description copied from interface: XBBlock
        Gets block data.
        Specified by:
        getData in interface XBBlock
        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: XBBlock
        Gets block data.
        Specified by:
        getBlockData in interface XBBlock
        Returns:
        block data or throws invalid operation on non-data block
      • getEmptyBlock

        @Nonnull
        public static XBEmptyBlock getEmptyBlock()