com.objectwave.classFile
Class ExceptionAttributeInfo

java.lang.Object
  |
  +--com.objectwave.classFile.AttributeInfo
        |
        +--com.objectwave.classFile.ExceptionAttributeInfo

public class ExceptionAttributeInfo
extends AttributeInfo

A specific attribute info.

Version:
1.2
See Also:
ClassFile

Constructor Summary
ExceptionAttributeInfo()
           
ExceptionAttributeInfo(ConstantPoolInfo newName, byte[] newData)
           
 
Method Summary
protected  void fixUpConstants(ClassFile target, ConstantPoolInfo[] originalPool)
           
 ConstantPoolInfo[] getExceptionList()
           
 boolean read(java.io.DataInputStream di, ConstantPoolInfo[] pool)
           
protected  void readTableAttributes(ConstantPoolInfo[] pool)
          Exceptions_attribute { u2 attribute_name_index; u4 attribute_length; u2 number_of_exceptions; u2 exception_index_table[number_of_exceptions]; }
 void write(java.io.DataOutputStream dos, ConstantPoolInfo[] pool)
          Write the bytes to the output stream.
 
Methods inherited from class com.objectwave.classFile.AttributeInfo
toBoolean, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExceptionAttributeInfo

public ExceptionAttributeInfo()

ExceptionAttributeInfo

public ExceptionAttributeInfo(ConstantPoolInfo newName,
                              byte[] newData)
Method Detail

getExceptionList

public ConstantPoolInfo[] getExceptionList()

read

public boolean read(java.io.DataInputStream di,
                    ConstantPoolInfo[] pool)
             throws java.io.IOException
Overrides:
read in class AttributeInfo
Parameters:
di -
pool -
Returns:
Throws:
java.io.IOException

readTableAttributes

protected void readTableAttributes(ConstantPoolInfo[] pool)
                            throws java.io.IOException
Exceptions_attribute { u2 attribute_name_index; u4 attribute_length; u2 number_of_exceptions; u2 exception_index_table[number_of_exceptions]; }

java.io.IOException

write

public void write(java.io.DataOutputStream dos,
                  ConstantPoolInfo[] pool)
           throws java.io.IOException,
                  java.lang.Exception
Write the bytes to the output stream.

Overrides:
write in class AttributeInfo
Parameters:
dos - The DataOutputStream upon which this is writing
pool - The constant pool in which to index.
Throws:
java.io.IOException
java.lang.Exception

fixUpConstants

protected void fixUpConstants(ClassFile target,
                              ConstantPoolInfo[] originalPool)
                       throws java.lang.Exception
Overrides:
fixUpConstants in class AttributeInfo
Parameters:
target -
originalPool -
Throws:
java.lang.Exception