Class XBTBlockToXBBlock

  • All Implemented Interfaces:
    org.exbin.xbup.core.block.XBBlock, org.exbin.xbup.core.block.XBEditableBlock

    @ParametersAreNonnullByDefault
    public class XBTBlockToXBBlock
    extends java.lang.Object
    implements org.exbin.xbup.core.block.XBEditableBlock
    Conversion from level 1 block to level 0 block.
    • Constructor Summary

      Constructors 
      Constructor Description
      XBTBlockToXBBlock​(org.exbin.xbup.core.block.XBTBlock block)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()  
      org.exbin.xbup.core.block.XBBlock createNewChild​(int childIndex)  
      org.exbin.xbup.core.parser.token.XBAttribute getAttributeAt​(int attributeIndex)  
      org.exbin.xbup.core.parser.token.XBAttribute[] getAttributes()  
      int getAttributesCount()  
      org.exbin.xbup.core.block.XBTBlock getBlock()  
      org.exbin.auxiliary.paged_data.BinaryData getBlockData()  
      java.io.InputStream getData()  
      org.exbin.xbup.core.block.XBBlockDataMode getDataMode()  
      org.exbin.xbup.core.block.XBBlock getChildAt​(int childIndex)  
      org.exbin.xbup.core.block.XBBlock[] getChildren()  
      int getChildrenCount()  
      java.util.Optional<org.exbin.xbup.core.block.XBBlock> getParentBlock()  
      org.exbin.xbup.core.block.XBBlockTerminationMode getTerminationMode()  
      void removeAttribute​(int attributeIndex)  
      void removeChild​(int childIndex)  
      void setAttributeAt​(org.exbin.xbup.core.parser.token.XBAttribute attribute, int attributeIndex)  
      void setAttributes​(org.exbin.xbup.core.parser.token.XBAttribute[] attributes)  
      void setAttributesCount​(int count)  
      void setData​(java.io.InputStream data)  
      void setData​(org.exbin.auxiliary.paged_data.BinaryData data)  
      void setDataMode​(org.exbin.xbup.core.block.XBBlockDataMode dataMode)  
      void setChildAt​(org.exbin.xbup.core.block.XBBlock child, int childIndex)  
      void setChildren​(org.exbin.xbup.core.block.XBBlock[] blocks)  
      void setChildrenCount​(int count)  
      void setParent​(org.exbin.xbup.core.block.XBBlock parent)  
      void setTerminationMode​(org.exbin.xbup.core.block.XBBlockTerminationMode terminationMode)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • XBTBlockToXBBlock

        public XBTBlockToXBBlock​(org.exbin.xbup.core.block.XBTBlock block)
    • Method Detail

      • getBlock

        public org.exbin.xbup.core.block.XBTBlock getBlock()
      • getParentBlock

        @Nonnull
        public java.util.Optional<org.exbin.xbup.core.block.XBBlock> getParentBlock()
        Specified by:
        getParentBlock in interface org.exbin.xbup.core.block.XBBlock
      • getDataMode

        public org.exbin.xbup.core.block.XBBlockDataMode getDataMode()
        Specified by:
        getDataMode in interface org.exbin.xbup.core.block.XBBlock
      • getTerminationMode

        public org.exbin.xbup.core.block.XBBlockTerminationMode getTerminationMode()
        Specified by:
        getTerminationMode in interface org.exbin.xbup.core.block.XBBlock
      • getAttributes

        public org.exbin.xbup.core.parser.token.XBAttribute[] getAttributes()
        Specified by:
        getAttributes in interface org.exbin.xbup.core.block.XBBlock
      • getAttributeAt

        public org.exbin.xbup.core.parser.token.XBAttribute getAttributeAt​(int attributeIndex)
        Specified by:
        getAttributeAt in interface org.exbin.xbup.core.block.XBBlock
      • getAttributesCount

        public int getAttributesCount()
        Specified by:
        getAttributesCount in interface org.exbin.xbup.core.block.XBBlock
      • getChildren

        public org.exbin.xbup.core.block.XBBlock[] getChildren()
        Specified by:
        getChildren in interface org.exbin.xbup.core.block.XBBlock
      • getChildAt

        public org.exbin.xbup.core.block.XBBlock getChildAt​(int childIndex)
        Specified by:
        getChildAt in interface org.exbin.xbup.core.block.XBBlock
      • getChildrenCount

        public int getChildrenCount()
        Specified by:
        getChildrenCount in interface org.exbin.xbup.core.block.XBBlock
      • getData

        @Nonnull
        public java.io.InputStream getData()
        Specified by:
        getData in interface org.exbin.xbup.core.block.XBBlock
      • getBlockData

        @Nonnull
        public org.exbin.auxiliary.paged_data.BinaryData getBlockData()
        Specified by:
        getBlockData in interface org.exbin.xbup.core.block.XBBlock
      • setParent

        public void setParent​(org.exbin.xbup.core.block.XBBlock parent)
        Specified by:
        setParent in interface org.exbin.xbup.core.block.XBEditableBlock
      • setTerminationMode

        public void setTerminationMode​(org.exbin.xbup.core.block.XBBlockTerminationMode terminationMode)
        Specified by:
        setTerminationMode in interface org.exbin.xbup.core.block.XBEditableBlock
      • setDataMode

        public void setDataMode​(org.exbin.xbup.core.block.XBBlockDataMode dataMode)
        Specified by:
        setDataMode in interface org.exbin.xbup.core.block.XBEditableBlock
      • setAttributes

        public void setAttributes​(org.exbin.xbup.core.parser.token.XBAttribute[] attributes)
        Specified by:
        setAttributes in interface org.exbin.xbup.core.block.XBEditableBlock
      • setAttributeAt

        public void setAttributeAt​(org.exbin.xbup.core.parser.token.XBAttribute attribute,
                                   int attributeIndex)
        Specified by:
        setAttributeAt in interface org.exbin.xbup.core.block.XBEditableBlock
      • setAttributesCount

        public void setAttributesCount​(int count)
        Specified by:
        setAttributesCount in interface org.exbin.xbup.core.block.XBEditableBlock
      • removeAttribute

        public void removeAttribute​(int attributeIndex)
        Specified by:
        removeAttribute in interface org.exbin.xbup.core.block.XBEditableBlock
      • setChildren

        public void setChildren​(org.exbin.xbup.core.block.XBBlock[] blocks)
        Specified by:
        setChildren in interface org.exbin.xbup.core.block.XBEditableBlock
      • setChildAt

        public void setChildAt​(org.exbin.xbup.core.block.XBBlock child,
                               int childIndex)
        Specified by:
        setChildAt in interface org.exbin.xbup.core.block.XBEditableBlock
      • setChildrenCount

        public void setChildrenCount​(int count)
        Specified by:
        setChildrenCount in interface org.exbin.xbup.core.block.XBEditableBlock
      • removeChild

        public void removeChild​(int childIndex)
        Specified by:
        removeChild in interface org.exbin.xbup.core.block.XBEditableBlock
      • setData

        public void setData​(java.io.InputStream data)
                     throws java.io.IOException
        Specified by:
        setData in interface org.exbin.xbup.core.block.XBEditableBlock
        Throws:
        java.io.IOException
      • setData

        public void setData​(org.exbin.auxiliary.paged_data.BinaryData data)
        Specified by:
        setData in interface org.exbin.xbup.core.block.XBEditableBlock
      • clear

        public void clear()
        Specified by:
        clear in interface org.exbin.xbup.core.block.XBEditableBlock
      • createNewChild

        public org.exbin.xbup.core.block.XBBlock createNewChild​(int childIndex)
        Specified by:
        createNewChild in interface org.exbin.xbup.core.block.XBEditableBlock