CTL
Class Java

java.lang.Object
  extended by CTL.Java

public class Java
extends java.lang.Object

Handle reading and writing of Java standard library types. Types currently handled: * HashMap * HashSet * LinkedList * Stack * TypeTree (CTL specific type) * Vector


Constructor Summary
Java()
           
 
Method Summary
static
<K,V> java.util.HashMap<K,V>
readHashMap(SerialIn in, TypeTree targs)
           
static
<E> java.util.HashSet<E>
readHashSet(SerialIn in, TypeTree targs)
           
static
<T> java.util.LinkedList<T>
readLinkedList(SerialIn in, TypeTree targs)
           
static
<E> java.util.Stack<E>
readStack(SerialIn in, TypeTree targs)
           
static TypeTree readTypeTree(SerialIn in)
           
static
<E> java.util.Vector<E>
readVector(SerialIn in, TypeTree targs)
           
static
<K,V> void
writeHashMap(SerialOut out, java.util.HashMap<K,V> map)
           
static
<E> void
writeHashSet(SerialOut out, java.util.HashSet<E> set)
           
static
<T> void
writeLinkedList(SerialOut out, java.util.LinkedList<T> list)
           
static
<E> void
writeStack(SerialOut out, java.util.Stack<E> stack)
           
static void writeTypeTree(SerialOut out, TypeTree tree)
           
static
<E> void
writeVector(SerialOut out, java.util.Vector<E> v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Java

public Java()
Method Detail

writeLinkedList

public static <T> void writeLinkedList(SerialOut out,
                                       java.util.LinkedList<T> list)
                            throws java.io.IOException,
                                   java.lang.IllegalAccessException,
                                   java.lang.reflect.InvocationTargetException,
                                   CTLException
Throws:
java.io.IOException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
CTLException

readLinkedList

public static <T> java.util.LinkedList<T> readLinkedList(SerialIn in,
                                                         TypeTree targs)
                                              throws java.io.IOException,
                                                     java.lang.IllegalAccessException,
                                                     java.lang.reflect.InvocationTargetException,
                                                     java.lang.ClassNotFoundException,
                                                     java.lang.InstantiationException
Throws:
java.io.IOException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.ClassNotFoundException
java.lang.InstantiationException

writeTypeTree

public static void writeTypeTree(SerialOut out,
                                 TypeTree tree)
                          throws java.io.IOException,
                                 java.lang.IllegalAccessException,
                                 java.lang.reflect.InvocationTargetException,
                                 CTLException
Throws:
java.io.IOException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
CTLException

readTypeTree

public static TypeTree readTypeTree(SerialIn in)
                             throws java.io.IOException,
                                    java.lang.IllegalAccessException,
                                    java.lang.reflect.InvocationTargetException,
                                    java.lang.ClassNotFoundException,
                                    java.lang.InstantiationException
Throws:
java.io.IOException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.ClassNotFoundException
java.lang.InstantiationException

writeHashMap

public static <K,V> void writeHashMap(SerialOut out,
                                      java.util.HashMap<K,V> map)
                         throws java.io.IOException,
                                java.lang.IllegalAccessException,
                                java.lang.reflect.InvocationTargetException,
                                CTLException
Throws:
java.io.IOException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
CTLException

readHashMap

public static <K,V> java.util.HashMap<K,V> readHashMap(SerialIn in,
                                                       TypeTree targs)
                                          throws java.io.IOException,
                                                 java.lang.IllegalAccessException,
                                                 java.lang.reflect.InvocationTargetException,
                                                 java.lang.ClassNotFoundException,
                                                 java.lang.InstantiationException
Throws:
java.io.IOException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.ClassNotFoundException
java.lang.InstantiationException

writeHashSet

public static <E> void writeHashSet(SerialOut out,
                                    java.util.HashSet<E> set)
                         throws java.io.IOException,
                                java.lang.IllegalAccessException,
                                java.lang.reflect.InvocationTargetException,
                                CTLException
Throws:
java.io.IOException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
CTLException

readHashSet

public static <E> java.util.HashSet<E> readHashSet(SerialIn in,
                                                   TypeTree targs)
                                        throws java.io.IOException,
                                               java.lang.IllegalAccessException,
                                               java.lang.reflect.InvocationTargetException,
                                               java.lang.ClassNotFoundException,
                                               java.lang.InstantiationException
Throws:
java.io.IOException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.ClassNotFoundException
java.lang.InstantiationException

writeVector

public static <E> void writeVector(SerialOut out,
                                   java.util.Vector<E> v)
                        throws java.io.IOException,
                               java.lang.IllegalAccessException,
                               java.lang.reflect.InvocationTargetException,
                               CTLException
Throws:
java.io.IOException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
CTLException

readVector

public static <E> java.util.Vector<E> readVector(SerialIn in,
                                                 TypeTree targs)
                                      throws java.io.IOException,
                                             java.lang.IllegalAccessException,
                                             java.lang.reflect.InvocationTargetException,
                                             java.lang.ClassNotFoundException,
                                             java.lang.InstantiationException
Throws:
java.io.IOException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.ClassNotFoundException
java.lang.InstantiationException

writeStack

public static <E> void writeStack(SerialOut out,
                                  java.util.Stack<E> stack)
                       throws java.io.IOException,
                              java.lang.IllegalAccessException,
                              java.lang.reflect.InvocationTargetException,
                              CTLException
Throws:
java.io.IOException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
CTLException

readStack

public static <E> java.util.Stack<E> readStack(SerialIn in,
                                               TypeTree targs)
                                    throws java.io.IOException,
                                           java.lang.IllegalAccessException,
                                           java.lang.reflect.InvocationTargetException,
                                           java.lang.ClassNotFoundException,
                                           java.lang.InstantiationException
Throws:
java.io.IOException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.ClassNotFoundException
java.lang.InstantiationException