at.dms.classfile
Class GenericAttribute

java.lang.Object
  extended by at.dms.classfile.Attribute
      extended by 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.


Field Summary
 
Fields inherited from class at.dms.classfile.Attribute
EMPTY
 
Constructor Summary
GenericAttribute(AsciiConstant name, DataInput in, ConstantPool cp)
          Make up a new attribute
GenericAttribute(String name, byte[] data)
          Make up a new attribute
 
Method Summary
 
Methods inherited from class at.dms.classfile.Attribute
read, readCodeInfoAttribute, readInterfaceOnly
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericAttribute

public GenericAttribute(String name,
                        byte[] data)
Make up a new attribute

Parameters:
name - Name to be associated with the attribute
data - 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 name
in - the stream to read from
cp - the constant pool
Throws:
IOException - an io problem has occured