Code example for DataInput

Methods: readInt, readUnsignedShort

0
    finishReadAttribute( DataInput i, UnicodeConstant name, ConstantPool cp ) throws IOException {
	int l;
	int n;
	ConstantObject d;
 
	l  = i.readInt();
	n  = i.readUnsignedShort();
	d  = cp.elementAt(n);
	return new ConstantValueAttribute( name, l, d );
    } 
 
}