Package gnu.bytecode

Class MiscAttr

    • Constructor Detail

      • MiscAttr

        public MiscAttr​(java.lang.String name,
                        byte[] data,
                        int offset,
                        int length)
      • MiscAttr

        public MiscAttr​(java.lang.String name,
                        byte[] data)
    • Method Detail

      • getLength

        public int getLength()
        Return the length of the attribute in bytes. Does not include the 6-byte header (for the name_index and the length).
        Specified by:
        getLength in class Attribute
      • u1

        protected int u1​(int offset)
      • u2

        protected int u2​(int offset)
      • u1

        protected int u1()
      • u2

        protected int u2()
      • put1

        protected void put1​(int val)
      • put2

        protected void put2​(int val)
      • put2

        protected void put2​(int offset,
                            int val)
      • write

        public void write​(java.io.DataOutputStream dstr)
                   throws java.io.IOException
        Write out the contents of the Attribute. Does not write the 6-byte attribute header.
        Specified by:
        write in class Attribute
        Throws:
        java.io.IOException