public final class Unknown extends Attribute
Attribute.readAttribute(java.io.DataInput, ConstantPool)
method.
Applications that need to read in application-specific attributes should create an
UnknownAttributeReader
implementation and attach it via
Attribute.addAttributeReader(String, UnknownAttributeReader)
.Attribute
,
UnknownAttributeReader
constant_pool, length, name_index, tag
Constructor and Description |
---|
Unknown(int name_index,
int length,
byte[] bytes,
ConstantPool constant_pool)
Create a non-standard attribute.
|
Unknown(Unknown c)
Initialize from another object.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor v)
Called by objects that are traversing the nodes of the tree implicitely
defined by the contents of a Java class.
|
Attribute |
copy(ConstantPool _constant_pool) |
void |
dump(DataOutputStream file)
Dump unknown bytes to file stream.
|
byte[] |
getBytes() |
String |
getName() |
void |
setBytes(byte[] bytes) |
String |
toString() |
addAttributeReader, addAttributeReader, clone, getConstantPool, getLength, getNameIndex, getTag, println, readAttribute, readAttribute, removeAttributeReader, setConstantPool, setLength, setNameIndex
public Unknown(Unknown c)
public Unknown(int name_index, int length, byte[] bytes, ConstantPool constant_pool)
name_index
- Index in constant poollength
- Content length in bytesbytes
- Attribute contentsconstant_pool
- Array of constantspublic void accept(Visitor v)
public void dump(DataOutputStream file) throws IOException
dump
in class Attribute
file
- Output file streamIOException
public byte[] getBytes()
public void setBytes(byte[] bytes)
bytes
- the bytes to setpublic String toString()
public Attribute copy(ConstantPool _constant_pool)
Copyright © 2004–2019 The Apache Software Foundation. All rights reserved.