visad.data.visad.object
Class BinaryIntegerSet

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

public class BinaryIntegerSet
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
BinaryIntegerSet()
           
 
Method Summary
static int computeBytes(boolean matchedTypes, int[] lengths, Integer1DSet[] comps, CoordinateSystem cs, Unit[] units, ErrorEstimate[] errors)
           
static Integer1DSet[] getComponents(LinearSet set)
           
static boolean hasMatchedTypes(SetType type, Integer1DSet[] comps)
           
static GriddedSet read(BinaryReader reader, byte dataType)
           
static void write(BinaryWriter writer, SetType type, int[] lengths, Integer1DSet[] comps, CoordinateSystem cs, Unit[] units, ErrorEstimate[] errors, GriddedSet set, Class canonicalClass, byte dataType, Object token)
           
static void writeDependentData(BinaryWriter writer, SetType type, Integer1DSet[] comps, CoordinateSystem cs, Unit[] units, ErrorEstimate[] errors, GriddedSet set, Class canonicalClass, Object token)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinaryIntegerSet

public BinaryIntegerSet()
Method Detail

computeBytes

public static final int computeBytes(boolean matchedTypes,
                                     int[] lengths,
                                     Integer1DSet[] comps,
                                     CoordinateSystem cs,
                                     Unit[] units,
                                     ErrorEstimate[] errors)

getComponents

public static final Integer1DSet[] getComponents(LinearSet set)

hasMatchedTypes

public static boolean hasMatchedTypes(SetType type,
                                      Integer1DSet[] comps)

read

public static final GriddedSet read(BinaryReader reader,
                                    byte dataType)
                             throws IOException,
                                    VisADException
Throws:
IOException
VisADException

writeDependentData

public static final void writeDependentData(BinaryWriter writer,
                                            SetType type,
                                            Integer1DSet[] comps,
                                            CoordinateSystem cs,
                                            Unit[] units,
                                            ErrorEstimate[] errors,
                                            GriddedSet set,
                                            Class canonicalClass,
                                            Object token)
                                     throws IOException
Throws:
IOException

write

public static final void write(BinaryWriter writer,
                               SetType type,
                               int[] lengths,
                               Integer1DSet[] comps,
                               CoordinateSystem cs,
                               Unit[] units,
                               ErrorEstimate[] errors,
                               GriddedSet set,
                               Class canonicalClass,
                               byte dataType,
                               Object token)
                        throws IOException
Throws:
IOException