< prev index next >

src/java.xml/share/classes/com/sun/org/apache/bcel/internal/classfile/Unknown.java

Print this page

        

*** 36,46 **** * Applications that need to read in application-specific attributes should create an * {@link UnknownAttributeReader} implementation and attach it via * {@link Attribute#addAttributeReader(String, UnknownAttributeReader)}. * - * @version $Id$ * @see Attribute * @see UnknownAttributeReader */ public final class Unknown extends Attribute { --- 36,45 ----
*** 122,169 **** * * @param file Output file stream * @throws IOException */ @Override ! public final void dump( final DataOutputStream file ) throws IOException { super.dump(file); if (super.getLength() > 0) { file.write(bytes, 0, super.getLength()); } } /** * @return data bytes. */ ! public final byte[] getBytes() { return bytes; } /** * @return name of attribute. */ @Override ! public final String getName() { return name; } /** * @param bytes the bytes to set */ ! public final void setBytes( final byte[] bytes ) { this.bytes = bytes; } /** * @return String representation. */ @Override ! public final String toString() { if (super.getLength() == 0 || bytes == null) { return "(Unknown attribute " + name + ")"; } String hex; if (super.getLength() > 10) { --- 121,168 ---- * * @param file Output file stream * @throws IOException */ @Override ! public void dump( final DataOutputStream file ) throws IOException { super.dump(file); if (super.getLength() > 0) { file.write(bytes, 0, super.getLength()); } } /** * @return data bytes. */ ! public byte[] getBytes() { return bytes; } /** * @return name of attribute. */ @Override ! public String getName() { return name; } /** * @param bytes the bytes to set */ ! public void setBytes( final byte[] bytes ) { this.bytes = bytes; } /** * @return String representation. */ @Override ! public String toString() { if (super.getLength() == 0 || bytes == null) { return "(Unknown attribute " + name + ")"; } String hex; if (super.getLength() > 10) {
< prev index next >