|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface JClassFileOutput
This JClassFileOutput interface provides methods for writing the bytes of a binary representation of a class (class file).
JClassFileItem,
JAttribute,
JConstant,
JConstantPool,
JClassMember| Method Summary | |
|---|---|
JConstantPool |
getConstantPool()
Returns the constant pool used by this classfile writer. |
void |
writeClassFileItem(JClassFileItem item)
Writes the specified class file item into the classfile. |
void |
writeConstant(JConstant constant)
Writes a constant pool entry in the classfile. |
void |
writeConstantPool(JConstantPool constantPool)
Writes the constant pool in the classfile. |
| Methods inherited from interface java.io.DataOutput |
|---|
write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF |
| Method Detail |
|---|
void writeConstant(JConstant constant)
throws java.io.IOException
constant - a constant pool entry
java.io.IOException - if an I/O error occurs when
writing this constant pool entry
void writeConstantPool(JConstantPool constantPool)
throws java.io.IOException
constantPool - the constant pool
java.io.IOException - if an I/O error occurs when
writing the constant pool
void writeClassFileItem(JClassFileItem item)
throws java.io.IOException
item - a classfile item
java.io.IOException - if an I/O error occurs when writingJConstantPool getConstantPool()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||