gnu.bytecode

Class MiscAttr


public class MiscAttr
extends Attribute

Constructor Summary

MiscAttr(String name, byte[] data)
MiscAttr(String name, byte[] data, int offset, int length)

Method Summary

int
getLength()
Return the length of the attribute in bytes.
void
write(DataOutputStream dstr)
Write out the contents of the Attribute.

Methods inherited from class gnu.bytecode.Attribute

addToFrontOf, assignConstants, assignConstants, count, get, getContainer, getLength, getLengthAll, getName, getNameIndex, getNext, isSkipped, print, setContainer, setName, setNameIndex, setNext, setSkipped, setSkipped, write, writeAll

Constructor Details

MiscAttr

public MiscAttr(String name,
                byte[] data)

MiscAttr

public MiscAttr(String name,
                byte[] data,
                int offset,
                int length)

Method Details

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).
Overrides:
getLength in interface Attribute

write

public void write(DataOutputStream dstr)
            throws java.io.IOException
Write out the contents of the Attribute. Does not write the 6-byte attribute header.
Overrides:
write in interface Attribute