public final class ClassFormatOutput
extends java.io.DataOutputStream
Constructor and Description |
---|
ClassFormatOutput() |
ClassFormatOutput(int size) |
ClassFormatOutput(java.io.OutputStream stream) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getData()
Get a reference to the data array the class data is being built
in.
|
(package private) static void |
limit(java.lang.String name,
int limit,
int value)
Throw an ClassFormatError if a limit of the Java class file format is reached.
|
void |
putU1(int i) |
void |
putU2(int i) |
void |
putU2(java.lang.String limit,
int i) |
void |
putU4(int i) |
void |
writeTo(java.io.OutputStream outTo) |
flush, size, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
public ClassFormatOutput()
public ClassFormatOutput(int size)
public ClassFormatOutput(java.io.OutputStream stream)
public void putU1(int i) throws java.io.IOException
java.io.IOException
public void putU2(int i) throws java.io.IOException
java.io.IOException
public void putU2(java.lang.String limit, int i) throws java.io.IOException
java.io.IOException
public void putU4(int i) throws java.io.IOException
java.io.IOException
public void writeTo(java.io.OutputStream outTo) throws java.io.IOException
java.io.IOException
public byte[] getData()
static void limit(java.lang.String name, int limit, int value) throws java.io.IOException
name
- Terse limit description from JVM spec.limit
- What the limit is.value
- What the value for the current class isjava.io.IOException
- Thrown when limit is exceeded.