CTL.Serialize
Class SerialIn

java.lang.Object
  extended by CTL.Streams.DataInputStream2
      extended by CTL.Serialize.SerialIn
All Implemented Interfaces:
java.io.DataInput
Direct Known Subclasses:
CTLIn, OIStream

public abstract class SerialIn
extends DataInputStream2


Constructor Summary
SerialIn(java.io.InputStream in)
           
 
Method Summary
abstract
<T> T[]
__readArray(java.lang.Class<T> type, java.util.LinkedList<TypeTree> params, int len)
           
abstract
<T> T[]
readArray(java.lang.Class<T> type, java.util.LinkedList<TypeTree> params)
           
abstract  java.lang.Object readObject()
           
abstract  java.lang.String readString()
           
abstract  Tupel readTupel(java.lang.Class[] types)
           
abstract  java.lang.String readWString()
           
 java.lang.Object serialRead(java.lang.Class... args)
           
<T> T
serialRead(java.lang.Class<T> klass)
           
 java.lang.Object serialRead(TypeTree tree)
          Read an object from the stream
 
Methods inherited from class CTL.Streams.DataInputStream2
available, changeEndianess, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerialIn

public SerialIn(java.io.InputStream in)
         throws java.io.IOException
Throws:
java.io.IOException
Method Detail

readString

public abstract java.lang.String readString()
                                     throws java.io.IOException
Throws:
java.io.IOException

readWString

public abstract java.lang.String readWString()
                                      throws java.io.IOException
Throws:
java.io.IOException

readArray

public abstract <T> T[] readArray(java.lang.Class<T> type,
                                  java.util.LinkedList<TypeTree> params)
                       throws java.io.IOException,
                              java.lang.ClassNotFoundException,
                              java.lang.InstantiationException,
                              java.lang.IllegalAccessException,
                              java.lang.reflect.InvocationTargetException
Throws:
java.io.IOException
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException

__readArray

public abstract <T> T[] __readArray(java.lang.Class<T> type,
                                    java.util.LinkedList<TypeTree> params,
                                    int len)
                         throws java.io.IOException,
                                java.lang.ClassNotFoundException,
                                java.lang.InstantiationException,
                                java.lang.IllegalAccessException,
                                java.lang.reflect.InvocationTargetException
Throws:
java.io.IOException
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException

readTupel

public abstract Tupel readTupel(java.lang.Class[] types)
                         throws java.io.IOException,
                                java.lang.ClassNotFoundException,
                                java.lang.InstantiationException,
                                java.lang.IllegalAccessException,
                                java.lang.reflect.InvocationTargetException,
                                CTLException
Throws:
java.io.IOException
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
CTLException

readObject

public abstract java.lang.Object readObject()
                                     throws java.io.IOException,
                                            java.lang.ClassNotFoundException,
                                            java.lang.InstantiationException,
                                            java.lang.IllegalAccessException,
                                            java.lang.reflect.InvocationTargetException
Throws:
java.io.IOException
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException

serialRead

public java.lang.Object serialRead(java.lang.Class... args)
                            throws java.io.IOException,
                                   java.lang.ClassNotFoundException,
                                   java.lang.InstantiationException,
                                   java.lang.IllegalAccessException,
                                   java.lang.reflect.InvocationTargetException
Throws:
java.io.IOException
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException

serialRead

public <T> T serialRead(java.lang.Class<T> klass)
             throws java.io.IOException,
                    java.lang.ClassNotFoundException,
                    java.lang.InstantiationException,
                    java.lang.IllegalAccessException,
                    java.lang.reflect.InvocationTargetException
Throws:
java.io.IOException
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException

serialRead

public java.lang.Object serialRead(TypeTree tree)
                            throws java.io.IOException,
                                   java.lang.ClassNotFoundException,
                                   java.lang.InstantiationException,
                                   java.lang.IllegalAccessException,
                                   java.lang.reflect.InvocationTargetException
Read an object from the stream

Parameters:
tree - TypeTree to read
Returns:
Value
Throws:
java.io.IOException
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException