at.dms.classfile
Class GenericAttribute
java.lang.Object
at.dms.classfile.Attribute
at.dms.classfile.GenericAttribute
public class GenericAttribute
- extends Attribute
This is an opaque attribute that lets you add an uninterpreted
stream of bytes into an attribute in a class file. This can be
used (for instance) to embed versioning or signatures into the
class file or method.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GenericAttribute
public GenericAttribute(String name,
byte[] data)
- Make up a new attribute
- Parameters:
name
- Name to be associated with the attributedata
- stream of bytes to be placed with the attribute
GenericAttribute
public GenericAttribute(AsciiConstant name,
DataInput in,
ConstantPool cp)
throws IOException
- Make up a new attribute
- Parameters:
name
- the attribute's namein
- the stream to read fromcp
- the constant pool
- Throws:
IOException
- an io problem has occured