FileDocCategorySizeDatePackage
ExceptionTable.javaAPI DocJ2ME CLDC 1.12402Wed Feb 05 15:56:04 GMT 2003kdp.classparser.attributes

ExceptionTable

public class ExceptionTable extends Object
Represents a single entry in the ExceptionsAttribute's exception table.
author
Aaron Dietrich
version
$Id: ExceptionTable.java,v 1.1.1.1 2000/07/07 13:34:23 jrv Exp $ Revision History $Log: ExceptionTable.java,v $ Revision 1.1.1.1 2000/07/07 13:34:23 jrv Initial import of kdp code Revision 1.1.1.1 2000/05/31 19:14:48 ritsun Initial import of kvmdt to CVS Revision 1.1 2000/04/25 00:30:39 ritsun Initial revision

Fields Summary
private int
startPC
index into the code array which denotes the location the exception handler becomes active
private int
endPC
index into the code array which denotes the location the exception handler ceases to be active
private int
handlerPC
index into the code array denoting the start of the exception handler
private int
catchType
index into the constant pool table identifying the class of exceptions this exception handler is designed to catch
Constructors Summary
public ExceptionTable(DataInputStream iStream)
Constructor. Reads an ExceptionTable from the specified data source.

param
iStream source of the ExceptionTable
exception
IOException pass IOExceptions up

      //read in all the fields from the DataInputStream
      startPC = iStream.readUnsignedShort ();
      endPC = iStream.readUnsignedShort ();
      handlerPC = iStream.readUnsignedShort ();
      catchType = iStream.readUnsignedShort ();
     
Methods Summary
public java.lang.StringtoString()
Returns the contents of the ExceptionTable as a String in an easy to read format.

return
String the contents of the exception table as a String

      return ("Exception Table:\n\tstartPC=" + startPC +
                "\n\tendPC=" + endPC + "\n\thandlerPC=" + 
                handlerPC + "\n\tcatchType=" + catchType);