org.apache.derby.iapi.services.classfile
Class ClassFormatOutput
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.FilterOutputStream
-
- java.io.DataOutputStream
-
- org.apache.derby.iapi.services.classfile.ClassFormatOutput
-
- All Implemented Interfaces:
- java.io.Closeable, java.io.DataOutput, java.io.Flushable, java.lang.AutoCloseable
public final class ClassFormatOutput extends java.io.DataOutputStreamA 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- float - writeFloat
- long - writeLong
- double - writeDouble
- UTF/String - writeUTF
- U1Array - write(byte[])
-
-
Constructor Summary
Constructors Constructor and Description ClassFormatOutput()ClassFormatOutput(int size)ClassFormatOutput(java.io.OutputStream stream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description byte[]getData()Get a reference to the data array the class data is being built in.voidputU1(int i)voidputU2(int i)voidputU2(java.lang.String limit, int i)voidputU4(int i)voidwriteTo(java.io.OutputStream outTo)-
Methods inherited from class java.io.DataOutputStream
flush, size, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
-
-
-
-
Constructor Detail
-
ClassFormatOutput
public ClassFormatOutput()
-
ClassFormatOutput
public ClassFormatOutput(int size)
-
ClassFormatOutput
public ClassFormatOutput(java.io.OutputStream stream)
-
-
Method Detail
-
putU1
public void putU1(int i) throws java.io.IOException- Throws:
java.io.IOException
-
putU2
public void putU2(int i) throws java.io.IOException- Throws:
java.io.IOException
-
putU2
public void putU2(java.lang.String limit, int i) throws java.io.IOException- Throws:
java.io.IOException
-
putU4
public void putU4(int i) throws java.io.IOException- Throws:
java.io.IOException
-
writeTo
public void writeTo(java.io.OutputStream outTo) throws java.io.IOException- Throws:
java.io.IOException
-
getData
public byte[] getData()
Get a reference to the data array the class data is being built in. No copy is made.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG