CTL.Streams
Class IStream2
java.lang.Object
CTL.Streams.DataOutputStream2
CTL.Serialize.SerialOut
CTL.Streams.OOStream
CTL.Streams.IStream2
- All Implemented Interfaces:
- OutStream, java.io.DataOutput
public class IStream2
- extends OOStream
Class which holds a number of function arguments in memory for later
writing.
Field Summary |
private java.io.ByteArrayOutputStream |
bout
|
Methods inherited from class CTL.Streams.OOStream |
__writeArray, changeEndianess, close, flush, serialWrite, write, write, writeArray, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeData, writeDouble, writeFloat, writeInt, writeLong, writeObject, writeShort, writeString, writeUTF, writeWString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
bout
private java.io.ByteArrayOutputStream bout
IStream2
public IStream2()
throws java.io.IOException,
CTLException
- Throws:
java.io.IOException
CTLException
IStream2
public IStream2(java.io.ByteArrayOutputStream bout)
throws java.io.IOException,
CTLException
- Throws:
java.io.IOException
CTLException
getBytes
private byte[] getBytes()
writeToStream
public void writeToStream(OOStream str,
boolean dummy)
throws java.io.IOException,
java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException
- Throws:
java.io.IOException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
streamSize
public int streamSize()
write
public void write(int val)
throws java.io.IOException
- Specified by:
write
in interface java.io.DataOutput
- Overrides:
write
in class OOStream
- Throws:
java.io.IOException
write
public <T> void write(T val)
throws java.io.IOException,
java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException
- Throws:
java.io.IOException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object