All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class lti.java.jcf.JcfAttribute

java.lang.Object
   |
   +----lti.java.jcf.JcfAttribute

public class JcfAttribute
extends Object
A generic attribute that can be placed in a JcfAttributeCollection. Can be read and written; data is processed as an array of bytes.


Variable Index

 o atrData
Returns data as a string of bytes.
 o atrLength
Returns data as a string of bytes.
 o atrNameIndex
 o constPool

Constructor Index

 o JcfAttribute(JcfClassInput, short, JcfConstantPool)
Reads header information, then calls readData to read the actual attribute contents.

Method Index

 o getConstPool()
 o getData()
 o getLength()
 o getNameIndex()
 o readData(JcfClassInput)
Allocates atrData array, then reads bytes into it.
 o write(JcfClassOutput)
Writes header data and length, then calls writeData.
 o writeData(JcfClassOutput)
Writes the actual attribute data.

Variables

 o atrNameIndex
 protected short atrNameIndex
 o atrLength
 protected int atrLength
Returns data as a string of bytes. May not be valid in subclasses.

 o atrData
 protected byte atrData[]
Returns data as a string of bytes. May not be valid in subclasses.

 o constPool
 protected JcfConstantPool constPool

Constructors

 o JcfAttribute
 public JcfAttribute(JcfClassInput ist,
                     short nameIndex,
                     JcfConstantPool p) throws IOException, ClassFormatError
Reads header information, then calls readData to read the actual attribute contents.

Methods

 o getNameIndex
 public final short getNameIndex()
 o getLength
 public int getLength()
 o getData
 public final byte[] getData()
 o getConstPool
 public final JcfConstantPool getConstPool()
 o readData
 public void readData(JcfClassInput ist) throws IOException, ClassFormatError
Allocates atrData array, then reads bytes into it.

 o write
 public void write(JcfClassOutput ost) throws IOException
Writes header data and length, then calls writeData.

 o writeData
 public void writeData(JcfClassOutput ost) throws IOException
Writes the actual attribute data.


All Packages  Class Hierarchy  This Package  Previous  Next  Index