CTL.Streams
Class IStream2

java.lang.Object
  extended by CTL.Streams.DataOutputStream2
      extended by CTL.Serialize.SerialOut
          extended by CTL.Streams.OOStream
              extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class CTL.Streams.OOStream
OOStream.Serial
 
Field Summary
private  java.io.ByteArrayOutputStream bout
           
 
Constructor Summary
IStream2()
           
IStream2(java.io.ByteArrayOutputStream bout)
           
 
Method Summary
private  byte[] getBytes()
           
 int streamSize()
           
 java.lang.String toString()
           
 void write(int val)
           
<T> void
write(T val)
           
 void writeToStream(OOStream str, boolean dummy)
           
 
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 CTL.Streams.DataOutputStream2
writeByte, writeChar, writeShort
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

bout

private java.io.ByteArrayOutputStream bout
Constructor Detail

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
Method Detail

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