visad.data.visad.object
Class BinaryUnit

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

public class BinaryUnit
extends 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
BinaryUnit()
           
 
Method Summary
static int computeBytes(Unit u)
           
static int computeBytes(Unit[] array)
           
static int[] lookupList(BinaryObjectCache cache, Unit[] units)
           
static Unit read(BinaryReader reader)
           
static Unit[] readList(BinaryReader reader)
           
static int write(BinaryWriter writer, Unit u, Object token)
           
static int[] writeList(BinaryWriter writer, Unit[] units, Object token)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinaryUnit

public BinaryUnit()
Method Detail

computeBytes

public static final int computeBytes(Unit u)

computeBytes

public static final int computeBytes(Unit[] array)

lookupList

public static final int[] lookupList(BinaryObjectCache cache,
                                     Unit[] units)

read

public static final Unit read(BinaryReader reader)
                       throws IOException,
                              VisADException
Throws:
IOException
VisADException

readList

public static final Unit[] readList(BinaryReader reader)
                             throws IOException
Throws:
IOException

write

public static final int write(BinaryWriter writer,
                              Unit u,
                              Object token)
                       throws IOException
Throws:
IOException

writeList

public static final int[] writeList(BinaryWriter writer,
                                    Unit[] units,
                                    Object token)
                             throws IOException
Throws:
IOException