Class NewAttributeBands

    • Field Detail

      • attributeLayoutElements

        protected java.util.List<org.apache.commons.compress.harmony.unpack200.NewAttributeBands.AttributeLayoutElement> attributeLayoutElements
    • Method Detail

      • getCodec

        public BHSDCodec getCodec​(java.lang.String layoutElement)
        Returns the BHSDCodec that should be used for the given layout element.
        Parameters:
        layoutElement - TODO
        Returns:
        the BHSDCodec that should be used for the given layout element.
      • parseAttributes

        public java.util.List<AttributeparseAttributes​(java.io.InputStream in,
                                                         int occurrenceCount)
                                                  throws java.io.IOException,
                                                         Pack200Exception
        Parse the bands relating to this AttributeLayout and return the correct class file attributes as a List of Attribute.
        Parameters:
        in - parse source.
        occurrenceCount - TODO
        Returns:
        Class file attributes as a List of Attribute.
        Throws:
        java.io.IOException - If an I/O error occurs.
        Pack200Exception - If a Pack200 semantic error occurs.
      • read

        public void read​(java.io.InputStream in)
                  throws java.io.IOException,
                         Pack200Exception
        Description copied from class: BandSet
        Reads the input stream.
        Specified by:
        read in class BandSet
        Parameters:
        in - the stream to read.
        Throws:
        java.io.IOException - if a problem occurs during reading from the underlying stream.
        Pack200Exception - if a problem occurs with an unexpected value or unsupported Codec.
      • setBackwardsCalls

        public void setBackwardsCalls​(int[] backwardsCalls)
                               throws java.io.IOException
        Once the attribute bands have been read the callables can be informed about the number of times each is subject to a backwards call. This method is used to set this information.
        Parameters:
        backwardsCalls - one int for each backwards callable, which contains the number of times that callable is subject to a backwards call.
        Throws:
        java.io.IOException - If an I/O error occurs.
      • unpack

        public void unpack()
                    throws java.io.IOException,
                           Pack200Exception
        Description copied from class: BandSet
        Unpacks this instance.
        Specified by:
        unpack in class BandSet
        Throws:
        java.io.IOException - if a problem occurs during reading from the underlying stream.
        Pack200Exception - if a problem occurs with an unexpected value or unsupported Codec.