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.
-
atrData
- Returns data as a string of bytes.
-
atrLength
- Returns data as a string of bytes.
-
atrNameIndex
-
-
constPool
-
-
JcfAttribute(JcfClassInput, short, JcfConstantPool)
- Reads header information, then calls readData to read the actual attribute
contents.
-
getConstPool()
-
-
getData()
-
-
getLength()
-
-
getNameIndex()
-
-
readData(JcfClassInput)
- Allocates atrData array, then reads bytes into it.
-
write(JcfClassOutput)
- Writes header data and length, then calls writeData.
-
writeData(JcfClassOutput)
- Writes the actual attribute data.
atrNameIndex
protected short atrNameIndex
atrLength
protected int atrLength
- Returns data as a string of bytes. May not be valid in subclasses.
atrData
protected byte atrData[]
- Returns data as a string of bytes. May not be valid in subclasses.
constPool
protected JcfConstantPool constPool
JcfAttribute
public JcfAttribute(JcfClassInput ist,
short nameIndex,
JcfConstantPool p) throws IOException, ClassFormatError
- Reads header information, then calls readData to read the actual attribute
contents.
getNameIndex
public final short getNameIndex()
getLength
public int getLength()
getData
public final byte[] getData()
getConstPool
public final JcfConstantPool getConstPool()
readData
public void readData(JcfClassInput ist) throws IOException, ClassFormatError
- Allocates atrData array, then reads bytes into it.
write
public void write(JcfClassOutput ost) throws IOException
- Writes header data and length, then calls writeData.
writeData
public void writeData(JcfClassOutput ost) throws IOException
- Writes the actual attribute data.
All Packages Class Hierarchy This Package Previous Next Index