visad.data.visad.object
Class BinarySerializedObject

java.lang.Object
  extended by visad.data.visad.object.BinarySerializedObject
All Implemented Interfaces:
BinaryFile, BinaryObject

public class BinarySerializedObject
extends java.lang.Object
implements BinaryObject


Field Summary
 
Fields inherited from interface visad.data.visad.object.BinaryObject
SAVE_DATA, SAVE_DEPEND, SAVE_DEPEND_BIG
 
Fields inherited from interface visad.data.visad.BinaryFile
DATA_DOUBLE_SET, DATA_FIELD, DATA_FLAT_FIELD, DATA_FLOAT_SET, DATA_GRIDDED_1D_DOUBLE_SET, DATA_GRIDDED_1D_SET, DATA_GRIDDED_2D_DOUBLE_SET, DATA_GRIDDED_2D_SET, DATA_GRIDDED_3D_DOUBLE_SET, DATA_GRIDDED_3D_SET, DATA_GRIDDED_SET, DATA_INTEGER_1D_SET, DATA_INTEGER_2D_SET, DATA_INTEGER_3D_SET, DATA_INTEGER_ND_SET, DATA_IRREGULAR_1D_SET, DATA_IRREGULAR_2D_SET, DATA_IRREGULAR_3D_SET, DATA_IRREGULAR_SET, DATA_LINEAR_1D_SET, DATA_LINEAR_2D_SET, DATA_LINEAR_3D_SET, DATA_LINEAR_LATLON_SET, DATA_LINEAR_ND_SET, DATA_LIST1D_SET, DATA_NONE, DATA_PRODUCT_SET, DATA_REAL, DATA_REAL_TUPLE, DATA_SINGLETON_SET, DATA_TEXT, DATA_TUPLE, DATA_UNION_SET, DEBUG_RD_CSYS, DEBUG_RD_DATA, DEBUG_RD_DATA_DETAIL, DEBUG_RD_ERRE, DEBUG_RD_MATH, DEBUG_RD_STR, DEBUG_RD_TIME, DEBUG_RD_UNIT, DEBUG_WR_CSYS, DEBUG_WR_DATA, DEBUG_WR_DATA_DETAIL, DEBUG_WR_ERRE, DEBUG_WR_MATH, DEBUG_WR_STR, DEBUG_WR_TIME, DEBUG_WR_UNIT, FLD_COORDSYS_SERIAL, FLD_DATA_SAMPLES, FLD_DELAUNAY, FLD_DELAUNAY_EDGES, FLD_DELAUNAY_NUM_EDGES, FLD_DELAUNAY_SERIAL, FLD_DELAUNAY_TRI, FLD_DELAUNAY_VERTICES, FLD_DELAUNAY_WALK, FLD_DOUBLE_SAMPLES, FLD_END, FLD_FIRSTS, FLD_FLOAT_LIST, FLD_FLOAT_SAMPLES, FLD_INDEX_COORDSYS, FLD_INDEX_ERROR, FLD_INDEX_ERRORS, FLD_INDEX_UNIT, FLD_INDEX_UNITS, FLD_INTEGER_SETS, FLD_LASTS, FLD_LENGTHS, FLD_LINEAR_SETS, FLD_RANGE_COORDSYSES, FLD_REAL_SAMPLES, FLD_SAMPLE, FLD_SET, FLD_SET_FOLLOWS_TYPE, FLD_SET_LIST, FLD_SET_SAMPLES, FLD_TRIVIAL_SAMPLES, FORMAT_VERSION, MAGIC_STR, MATH_FUNCTION, MATH_QUANTITY, MATH_REAL, MATH_REAL_TUPLE, MATH_SET, MATH_TEXT, MATH_TUPLE, OBJ_COORDSYS, OBJ_DATA, OBJ_DATA_SERIAL, OBJ_ERROR, OBJ_MATH, OBJ_MATH_SERIAL, OBJ_UNIT
 
Constructor Summary
BinarySerializedObject()
           
 
Method Summary
static int computeBytes(java.lang.Object obj)
           
static byte[] getBytes(java.lang.Object obj)
           
static java.lang.Object read(java.io.DataInput file)
           
static java.lang.Object read(java.io.DataInput file, int len)
           
static void write(BinaryWriter writer, byte objType, java.lang.Object obj, java.lang.Object token)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinarySerializedObject

public BinarySerializedObject()
Method Detail

computeBytes

public static final int computeBytes(java.lang.Object obj)

getBytes

public static byte[] getBytes(java.lang.Object obj)
                       throws java.io.IOException
Throws:
java.io.IOException

read

public static final java.lang.Object read(java.io.DataInput file)
                                   throws java.io.IOException
Throws:
java.io.IOException

read

public static final java.lang.Object read(java.io.DataInput file,
                                          int len)
                                   throws java.io.IOException
Throws:
java.io.IOException

write

public static final void write(BinaryWriter writer,
                               byte objType,
                               java.lang.Object obj,
                               java.lang.Object token)
                        throws java.io.IOException
Throws:
java.io.IOException