public class ByteCodeWriter
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
JavaClass |
getJavaClass()
Returns the java class for the writer.
|
void |
write(byte[] buffer,
int offset,
int length)
Writes a buffer
|
void |
write(int v)
Writes a byte
|
void |
writeClass(java.lang.String className)
Writes a class constant.
|
void |
writeDouble(double v)
Writes a double
|
void |
writeFloat(float v)
Writes a float
|
void |
writeInt(int v)
Writes an int
|
void |
writeIntUTF8(java.lang.String value)
Writes UTF-8
|
void |
writeLong(long v)
Writes an int
|
void |
writeShort(int v)
Writes a short.
|
void |
writeUTF8(ByteBuffer bb,
java.lang.String value)
Writes UTF-8
|
void |
writeUTF8(java.lang.String value)
Writes UTF-8
|
void |
writeUTF8Const(java.lang.String value)
Writes a UTF8 constant.
|
public JavaClass getJavaClass()
public void writeClass(java.lang.String className) throws java.io.IOException
java.io.IOException
public void writeUTF8Const(java.lang.String value) throws java.io.IOException
java.io.IOException
public void write(int v) throws java.io.IOException
java.io.IOException
public void write(byte[] buffer, int offset, int length) throws java.io.IOException
java.io.IOException
public void writeShort(int v) throws java.io.IOException
java.io.IOException
public void writeInt(int v) throws java.io.IOException
java.io.IOException
public void writeLong(long v) throws java.io.IOException
java.io.IOException
public void writeFloat(float v) throws java.io.IOException
java.io.IOException
public void writeDouble(double v) throws java.io.IOException
java.io.IOException
public void writeUTF8(java.lang.String value) throws java.io.IOException
java.io.IOException
public void writeIntUTF8(java.lang.String value) throws java.io.IOException
java.io.IOException
public void writeUTF8(ByteBuffer bb, java.lang.String value)