< prev index next >
src/java.xml/share/classes/com/sun/org/apache/bcel/internal/classfile/Signature.java
Print this page
*** 30,40 ****
/**
* This class is derived from <em>Attribute</em> and represents a reference
* to a GJ attribute.
*
- * @version $Id$
* @see Attribute
*/
public final class Signature extends Attribute {
private int signature_index;
--- 30,39 ----
*** 94,129 ****
*
* @param file Output file stream
* @throws IOException
*/
@Override
! public final void dump( final DataOutputStream file ) throws IOException {
super.dump(file);
file.writeShort(signature_index);
}
/**
* @return Index in constant pool of source file name.
*/
! public final int getSignatureIndex() {
return signature_index;
}
/**
* @param signature_index the index info the constant pool of this signature
*/
! public final void setSignatureIndex( final int signature_index ) {
this.signature_index = signature_index;
}
/**
* @return GJ signature.
*/
! public final String getSignature() {
final ConstantUtf8 c = (ConstantUtf8) super.getConstantPool().getConstant(signature_index,
Const.CONSTANT_Utf8);
return c.getBytes();
}
--- 93,128 ----
*
* @param file Output file stream
* @throws IOException
*/
@Override
! public void dump( final DataOutputStream file ) throws IOException {
super.dump(file);
file.writeShort(signature_index);
}
/**
* @return Index in constant pool of source file name.
*/
! public int getSignatureIndex() {
return signature_index;
}
/**
* @param signature_index the index info the constant pool of this signature
*/
! public void setSignatureIndex( final int signature_index ) {
this.signature_index = signature_index;
}
/**
* @return GJ signature.
*/
! public String getSignature() {
final ConstantUtf8 c = (ConstantUtf8) super.getConstantPool().getConstant(signature_index,
Const.CONSTANT_Utf8);
return c.getBytes();
}
*** 135,150 ****
MyByteArrayInputStream(final String data) {
super(data.getBytes());
}
! final String getData() {
return new String(buf);
}
! final void unread() {
if (pos > 0) {
pos--;
}
}
}
--- 134,149 ----
MyByteArrayInputStream(final String data) {
super(data.getBytes());
}
! String getData() {
return new String(buf);
}
! void unread() {
if (pos > 0) {
pos--;
}
}
}
*** 256,266 ****
/**
* @return String representation
*/
@Override
! public final String toString() {
final String s = getSignature();
return "Signature: " + s;
}
--- 255,265 ----
/**
* @return String representation
*/
@Override
! public String toString() {
final String s = getSignature();
return "Signature: " + s;
}
< prev index next >