|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface ClassFileWriter.AttributeWriter
This writes attributes.
For example, the following object writes a synthetic attribute:
ConstPoolWriter cpw = ...; final int tag = cpw.addUtf8Info("Synthetic"); AttributeWriter aw = new AttributeWriter() { public int size() { return 1; } public void write(DataOutputStream out) throws java.io.IOException { out.writeShort(tag); out.writeInt(0); } };
Method Summary | |
---|---|
int |
size()
Returns the number of attributes that this writer will write. |
void |
write(java.io.DataOutputStream out)
Writes all the contents of the attributes. |
Method Detail |
---|
int size()
void write(java.io.DataOutputStream out) throws java.io.IOException
attribute_info
.
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |