Top Description Fields Constructors Methods
org.apache.derby.iapi.services.classfile

public final Class ClassFormatOutput

extends DataOutputStream
Class Inheritance
Imports
org.apache.derby.iapi.services.io.AccessibleByteArrayOutputStream, java.io.DataOutputStream, .IOException, .OutputStream

A wrapper around DataOutputStream to provide input functions in terms of the types defined on pages 83 of the Java Virtual Machine spec. For this types use these methods of DataOutputStream

Field Summary

Inherited from java.io.DataOutputStream:
written

Constructor Summary

AccessConstructor and Description
public
public
public

Method Summary

Modifier and TypeMethod and Description
public byte[]
getData()

Get a reference to the data array the class data is being built in. No copy is made.

pack-priv static void
limit(String
Terse limit description from JVM spec.
name
,
int
What the limit is.
limit
,
int
What the value for the current class is
value
)

Throw an ClassFormatError if a limit of the Java class file format is reached.

public void
putU1(int i)

public void
putU2(int i)

public void
putU2(String limit, int i)

public void
putU4(int i)

public void
Inherited from java.io.DataOutputStream:
flushsizewritewritewriteBooleanwriteBytewriteByteswriteCharwriteCharswriteDoublewriteFloatwriteIntwriteLongwriteShortwriteUTF

Constructor Detail

ClassFormatOutputback to summary
public ClassFormatOutput()
ClassFormatOutputback to summary
public ClassFormatOutput(int size)
ClassFormatOutputback to summary
public ClassFormatOutput(OutputStream stream)

Method Detail

getDataback to summary
public byte[] getData()

Get a reference to the data array the class data is being built in. No copy is made.

limitback to summary
pack-priv static void limit(String name, int limit, int value) throws IOException

Throw an ClassFormatError if a limit of the Java class file format is reached.

Parameters
name:String

Terse limit description from JVM spec.

limit:int

What the limit is.

value:int

What the value for the current class is

Exceptions
IOException:
Thrown when limit is exceeded.
putU1back to summary
public void putU1(int i) throws IOException
putU2back to summary
public void putU2(int i) throws IOException
putU2back to summary
public void putU2(String limit, int i) throws IOException
putU4back to summary
public void putU4(int i) throws IOException
writeToback to summary
public void writeTo(OutputStream outTo) throws IOException