uka.transport
Class ValueIO

java.lang.Object
  extended byuka.transport.BasicIO
      extended byuka.transport.ValueIO
All Implemented Interfaces:
TransportConstants

public final class ValueIO
extends BasicIO

Provides support for marshalling arrays as inline objects. No references are created in the MarshalStream. If the array is marshalled twice, two copys of the array are marshaled and unmarshalled. Marshalling inline aviods the overhead of reference resolving and cycle detection.


Field Summary
 
Fields inherited from interface uka.transport.TransportConstants
REQUEST_MAX, REQUEST_MAX_boolean, REQUEST_MAX_byte, REQUEST_MAX_char, REQUEST_MAX_double, REQUEST_MAX_float, REQUEST_MAX_int, REQUEST_MAX_long, REQUEST_MAX_short, SIZEOF_boolean, SIZEOF_byte, SIZEOF_char, SIZEOF_double, SIZEOF_float, SIZEOF_int, SIZEOF_long, SIZEOF_short, TC_ANONYMOUS, TC_DEFAULT, TC_EXCEPTION, TC_NEW, TC_NULL, TC_REFERENCE, TC_REPLACEMENT, TC_RESET, TC_RESETTYPE, TC_TYPE, TC_USER
 
Constructor Summary
ValueIO()
           
 
Method Summary
static boolean[][] readValueArrayArrayBoolean(UnmarshalStream s)
          Unmarshals an boolean[][] array that was marshaled as inlined value from the UnmarshalStream s
static byte[][] readValueArrayArrayByte(UnmarshalStream s)
          Unmarshals an byte[][] array that was marshaled as inlined value from the UnmarshalStream s
static char[][] readValueArrayArrayChar(UnmarshalStream s)
          Unmarshals an char[][] array that was marshaled as inlined value from the UnmarshalStream s
static double[][] readValueArrayArrayDouble(UnmarshalStream s)
          Unmarshals an double[][] array that was marshaled as inlined value from the UnmarshalStream s
static float[][] readValueArrayArrayFloat(UnmarshalStream s)
          Unmarshals an float[][] array that was marshaled as inlined value from the UnmarshalStream s
static int[][] readValueArrayArrayInt(UnmarshalStream s)
          Unmarshals an int[][] array that was marshaled as inlined value from the UnmarshalStream s
static long[][] readValueArrayArrayLong(UnmarshalStream s)
          Unmarshals an long[][] array that was marshaled as inlined value from the UnmarshalStream s
static short[][] readValueArrayArrayShort(UnmarshalStream s)
          Unmarshals an short[][] array that was marshaled as inlined value from the UnmarshalStream s
static boolean[] readValueArrayBoolean(UnmarshalStream s)
          Unmarshals an boolean[] array that was marshaled as inlined value from the UnmarshalStream s
static byte[] readValueArrayByte(UnmarshalStream s)
          Unmarshals an byte[] array that was marshaled as inlined value from the UnmarshalStream s
static char[] readValueArrayChar(UnmarshalStream s)
          Unmarshals an char[] array that was marshaled as inlined value from the UnmarshalStream s
static double[] readValueArrayDouble(UnmarshalStream s)
          Unmarshals an double[] array that was marshaled as inlined value from the UnmarshalStream s
static float[] readValueArrayFloat(UnmarshalStream s)
          Unmarshals an float[] array that was marshaled as inlined value from the UnmarshalStream s
static int[] readValueArrayInt(UnmarshalStream s)
          Unmarshals an int[] array that was marshaled as inlined value from the UnmarshalStream s
static long[] readValueArrayLong(UnmarshalStream s)
          Unmarshals an long[] array that was marshaled as inlined value from the UnmarshalStream s
static short[] readValueArrayShort(UnmarshalStream s)
          Unmarshals an short[] array that was marshaled as inlined value from the UnmarshalStream s
static void writeValue(MarshalStream s, boolean[] array)
          Marshals a boolean[] array as inlined value
static void writeValue(MarshalStream s, boolean[][] array)
          Marshals a boolean[][] array as inlined value
static void writeValue(MarshalStream s, byte[] array)
          Marshals a byte[] array as inlined value
static void writeValue(MarshalStream s, byte[][] array)
          Marshals a byte[][] array as inlined value
static void writeValue(MarshalStream s, char[] array)
          Marshals a char[] array as inlined value
static void writeValue(MarshalStream s, char[][] array)
          Marshals a char[][] array as inlined value
static void writeValue(MarshalStream s, double[] array)
          Marshals a double[] array as inlined value
static void writeValue(MarshalStream s, double[][] array)
          Marshals a double[][] array as inlined value
static void writeValue(MarshalStream s, float[] array)
          Marshals a float[] array as inlined value
static void writeValue(MarshalStream s, float[][] array)
          Marshals a float[][] array as inlined value
static void writeValue(MarshalStream s, int[] array)
          Marshals a int[] array as inlined value
static void writeValue(MarshalStream s, int[][] array)
          Marshals a int[][] array as inlined value
static void writeValue(MarshalStream s, long[] array)
          Marshals a long[] array as inlined value
static void writeValue(MarshalStream s, long[][] array)
          Marshals a long[][] array as inlined value
static void writeValue(MarshalStream s, short[] array)
          Marshals a short[] array as inlined value
static void writeValue(MarshalStream s, short[][] array)
          Marshals a short[][] array as inlined value
 
Methods inherited from class uka.transport.BasicIO
extract, extract, extract, extract, extract, extract, extract, extract, extract, extract, extract, extract, extract, extract, extract, extract, extractBoolean, extractByte, extractChar, extractDouble, extractFloat, extractInt, extractLong, extractShort, extractUnsignedByte, extractUnsignedShort, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, sizeof, sizeof, sizeof, sizeof, sizeof, sizeof, sizeof, sizeof, sizeof, sizeof, sizeof, sizeof, sizeof, sizeof, sizeof, sizeof
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueIO

public ValueIO()
Method Detail

writeValue

public static final void writeValue(MarshalStream s,
                                    byte[] array)
                             throws java.io.IOException
Marshals a byte[] array as inlined value

Throws:
java.io.IOException

writeValue

public static final void writeValue(MarshalStream s,
                                    int[] array)
                             throws java.io.IOException
Marshals a int[] array as inlined value

Throws:
java.io.IOException

writeValue

public static final void writeValue(MarshalStream s,
                                    char[] array)
                             throws java.io.IOException
Marshals a char[] array as inlined value

Throws:
java.io.IOException

writeValue

public static final void writeValue(MarshalStream s,
                                    float[] array)
                             throws java.io.IOException
Marshals a float[] array as inlined value

Throws:
java.io.IOException

writeValue

public static final void writeValue(MarshalStream s,
                                    long[] array)
                             throws java.io.IOException
Marshals a long[] array as inlined value

Throws:
java.io.IOException

writeValue

public static final void writeValue(MarshalStream s,
                                    double[] array)
                             throws java.io.IOException
Marshals a double[] array as inlined value

Throws:
java.io.IOException

writeValue

public static final void writeValue(MarshalStream s,
                                    short[] array)
                             throws java.io.IOException
Marshals a short[] array as inlined value

Throws:
java.io.IOException

writeValue

public static final void writeValue(MarshalStream s,
                                    boolean[] array)
                             throws java.io.IOException
Marshals a boolean[] array as inlined value

Throws:
java.io.IOException

writeValue

public static final void writeValue(MarshalStream s,
                                    byte[][] array)
                             throws java.io.IOException
Marshals a byte[][] array as inlined value

Throws:
java.io.IOException

writeValue

public static final void writeValue(MarshalStream s,
                                    int[][] array)
                             throws java.io.IOException
Marshals a int[][] array as inlined value

Throws:
java.io.IOException

writeValue

public static final void writeValue(MarshalStream s,
                                    char[][] array)
                             throws java.io.IOException
Marshals a char[][] array as inlined value

Throws:
java.io.IOException

writeValue

public static final void writeValue(MarshalStream s,
                                    float[][] array)
                             throws java.io.IOException
Marshals a float[][] array as inlined value

Throws:
java.io.IOException

writeValue

public static final void writeValue(MarshalStream s,
                                    long[][] array)
                             throws java.io.IOException
Marshals a long[][] array as inlined value

Throws:
java.io.IOException

writeValue

public static final void writeValue(MarshalStream s,
                                    double[][] array)
                             throws java.io.IOException
Marshals a double[][] array as inlined value

Throws:
java.io.IOException

writeValue

public static final void writeValue(MarshalStream s,
                                    short[][] array)
                             throws java.io.IOException
Marshals a short[][] array as inlined value

Throws:
java.io.IOException

writeValue

public static final void writeValue(MarshalStream s,
                                    boolean[][] array)
                             throws java.io.IOException
Marshals a boolean[][] array as inlined value

Throws:
java.io.IOException

readValueArrayByte

public static final byte[] readValueArrayByte(UnmarshalStream s)
                                       throws java.io.IOException
Unmarshals an byte[] array that was marshaled as inlined value from the UnmarshalStream s

Returns:
the unmarshaled array
Throws:
java.io.IOException

readValueArrayInt

public static final int[] readValueArrayInt(UnmarshalStream s)
                                     throws java.io.IOException
Unmarshals an int[] array that was marshaled as inlined value from the UnmarshalStream s

Returns:
the unmarshaled array
Throws:
java.io.IOException

readValueArrayChar

public static final char[] readValueArrayChar(UnmarshalStream s)
                                       throws java.io.IOException
Unmarshals an char[] array that was marshaled as inlined value from the UnmarshalStream s

Returns:
the unmarshaled array
Throws:
java.io.IOException

readValueArrayFloat

public static final float[] readValueArrayFloat(UnmarshalStream s)
                                         throws java.io.IOException
Unmarshals an float[] array that was marshaled as inlined value from the UnmarshalStream s

Returns:
the unmarshaled array
Throws:
java.io.IOException

readValueArrayLong

public static final long[] readValueArrayLong(UnmarshalStream s)
                                       throws java.io.IOException
Unmarshals an long[] array that was marshaled as inlined value from the UnmarshalStream s

Returns:
the unmarshaled array
Throws:
java.io.IOException

readValueArrayDouble

public static final double[] readValueArrayDouble(UnmarshalStream s)
                                           throws java.io.IOException
Unmarshals an double[] array that was marshaled as inlined value from the UnmarshalStream s

Returns:
the unmarshaled array
Throws:
java.io.IOException

readValueArrayShort

public static final short[] readValueArrayShort(UnmarshalStream s)
                                         throws java.io.IOException
Unmarshals an short[] array that was marshaled as inlined value from the UnmarshalStream s

Returns:
the unmarshaled array
Throws:
java.io.IOException

readValueArrayBoolean

public static final boolean[] readValueArrayBoolean(UnmarshalStream s)
                                             throws java.io.IOException
Unmarshals an boolean[] array that was marshaled as inlined value from the UnmarshalStream s

Returns:
the unmarshaled array
Throws:
java.io.IOException

readValueArrayArrayByte

public static final byte[][] readValueArrayArrayByte(UnmarshalStream s)
                                              throws java.io.IOException
Unmarshals an byte[][] array that was marshaled as inlined value from the UnmarshalStream s

Returns:
the unmarshaled array
Throws:
java.io.IOException

readValueArrayArrayInt

public static final int[][] readValueArrayArrayInt(UnmarshalStream s)
                                            throws java.io.IOException
Unmarshals an int[][] array that was marshaled as inlined value from the UnmarshalStream s

Returns:
the unmarshaled array
Throws:
java.io.IOException

readValueArrayArrayChar

public static final char[][] readValueArrayArrayChar(UnmarshalStream s)
                                              throws java.io.IOException
Unmarshals an char[][] array that was marshaled as inlined value from the UnmarshalStream s

Returns:
the unmarshaled array
Throws:
java.io.IOException

readValueArrayArrayFloat

public static final float[][] readValueArrayArrayFloat(UnmarshalStream s)
                                                throws java.io.IOException
Unmarshals an float[][] array that was marshaled as inlined value from the UnmarshalStream s

Returns:
the unmarshaled array
Throws:
java.io.IOException

readValueArrayArrayLong

public static final long[][] readValueArrayArrayLong(UnmarshalStream s)
                                              throws java.io.IOException
Unmarshals an long[][] array that was marshaled as inlined value from the UnmarshalStream s

Returns:
the unmarshaled array
Throws:
java.io.IOException

readValueArrayArrayDouble

public static final double[][] readValueArrayArrayDouble(UnmarshalStream s)
                                                  throws java.io.IOException
Unmarshals an double[][] array that was marshaled as inlined value from the UnmarshalStream s

Returns:
the unmarshaled array
Throws:
java.io.IOException

readValueArrayArrayShort

public static final short[][] readValueArrayArrayShort(UnmarshalStream s)
                                                throws java.io.IOException
Unmarshals an short[][] array that was marshaled as inlined value from the UnmarshalStream s

Returns:
the unmarshaled array
Throws:
java.io.IOException

readValueArrayArrayBoolean

public static final boolean[][] readValueArrayArrayBoolean(UnmarshalStream s)
                                                    throws java.io.IOException
Unmarshals an boolean[][] array that was marshaled as inlined value from the UnmarshalStream s

Returns:
the unmarshaled array
Throws:
java.io.IOException