com.claritysys.jvm.classfile
Interface AttributeHandler
- All Known Implementing Classes:
- CfField, CfMethod, ClassFile
public interface AttributeHandler
A callback interface, to intercept attributes as they are being read.
|
Method Summary |
boolean |
handleAttribute(java.io.DataInputStream dataIn,
java.lang.String name,
int length)
Process the given attribute. |
handleAttribute
boolean handleAttribute(java.io.DataInputStream dataIn,
java.lang.String name,
int length)
throws java.io.IOException,
ClassFileFormatException
- Process the given attribute. If the handler does not wish to process
it, it should return false. If it does handle it, return true.
- Parameters:
dataIn - DataInputStream, positioned to attribute's data.name - Attribute name from constant pool.length - Length of info[] in bytes.
- Returns:
- true if the handler processed it, false if not.
- Throws:
java.io.IOException - If an I/O error ocurrs.
ClassFileFormatException - If the attribute was processed but
was incorrectly formed.
Copyright ? 2000-2003 Clarity Systems Group, LLC. All Rights Reserved.