|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object visad.data.BaseDataProcessor visad.data.visad.BinaryWriter
public class BinaryWriter
Write a Data
object in VisAD's binary format.
Field Summary |
---|
Constructor Summary | |
---|---|
BinaryWriter()
|
|
BinaryWriter(File ref)
|
|
BinaryWriter(OutputStream stream)
|
|
BinaryWriter(String name)
|
Method Summary | |
---|---|
void |
close()
Close the file |
void |
flush()
Flush all data to disk. |
BinaryObjectCache |
getCoordinateSystemCache()
|
BinaryObjectCache |
getErrorEstimateCache()
|
DataOutput |
getOutput()
|
BinaryObjectCache |
getTypeCache()
|
BinaryObjectCache |
getUnitCache()
|
void |
processDoubleSet(SetType type,
CoordinateSystem cs,
Unit[] units,
DoubleSet set,
Object token)
|
void |
processFieldImpl(FunctionType type,
Set set,
FieldImpl fld,
Object token)
|
void |
processFlatField(FunctionType type,
Set domainSet,
CoordinateSystem cs,
CoordinateSystem[] rangeCS,
Set[] rangeSets,
Unit[] units,
FlatField fld,
Object token)
|
void |
processFloatSet(SetType type,
CoordinateSystem cs,
Unit[] units,
FloatSet set,
Object token)
|
void |
processGridded1DDoubleSet(SetType type,
double[][] samples,
int[] lengths,
CoordinateSystem cs,
Unit[] units,
ErrorEstimate[] errors,
Gridded1DDoubleSet set,
Object token)
|
void |
processGridded1DSet(SetType type,
float[][] samples,
int[] lengths,
CoordinateSystem cs,
Unit[] units,
ErrorEstimate[] errors,
Gridded1DSet set,
Object token)
|
void |
processGridded2DDoubleSet(SetType type,
double[][] samples,
int[] lengths,
CoordinateSystem cs,
Unit[] units,
ErrorEstimate[] errors,
Gridded2DDoubleSet set,
Object token)
|
void |
processGridded2DSet(SetType type,
float[][] samples,
int[] lengths,
CoordinateSystem cs,
Unit[] units,
ErrorEstimate[] errors,
Gridded2DSet set,
Object token)
|
void |
processGridded3DDoubleSet(SetType type,
double[][] samples,
int[] lengths,
CoordinateSystem cs,
Unit[] units,
ErrorEstimate[] errors,
Gridded3DDoubleSet set,
Object token)
|
void |
processGridded3DSet(SetType type,
float[][] samples,
int[] lengths,
CoordinateSystem cs,
Unit[] units,
ErrorEstimate[] errors,
Gridded3DSet set,
Object token)
|
void |
processGriddedSet(SetType type,
float[][] samples,
int[] lengths,
CoordinateSystem cs,
Unit[] units,
ErrorEstimate[] errors,
GriddedSet set,
Object token)
|
void |
processInteger1DSet(SetType type,
int[] lengths,
CoordinateSystem cs,
Unit[] units,
ErrorEstimate[] errors,
Integer1DSet set,
Object token)
|
void |
processInteger2DSet(SetType type,
int[] lengths,
CoordinateSystem cs,
Unit[] units,
ErrorEstimate[] errors,
Integer2DSet set,
Object token)
|
void |
processInteger3DSet(SetType type,
int[] lengths,
CoordinateSystem cs,
Unit[] units,
ErrorEstimate[] errors,
Integer3DSet set,
Object token)
|
void |
processIntegerNDSet(SetType type,
int[] lengths,
CoordinateSystem cs,
Unit[] units,
ErrorEstimate[] errors,
IntegerNDSet set,
Object token)
|
void |
processIrregular1DSet(SetType type,
float[][] samples,
CoordinateSystem cs,
Unit[] units,
ErrorEstimate[] errors,
Irregular1DSet set,
Object token)
|
void |
processIrregular2DSet(SetType type,
float[][] samples,
CoordinateSystem cs,
Unit[] units,
ErrorEstimate[] errors,
Delaunay delaunay,
Irregular2DSet set,
Object token)
|
void |
processIrregular3DSet(SetType type,
float[][] samples,
CoordinateSystem cs,
Unit[] units,
ErrorEstimate[] errors,
Delaunay delaunay,
Irregular3DSet set,
Object token)
|
void |
processIrregularSet(SetType type,
float[][] samples,
CoordinateSystem cs,
Unit[] units,
ErrorEstimate[] errors,
Delaunay delaunay,
IrregularSet set,
Object token)
|
void |
processLinear1DSet(SetType type,
double[] firsts,
double[] lasts,
int[] lengths,
CoordinateSystem cs,
Unit[] units,
ErrorEstimate[] errors,
Linear1DSet set,
Object token)
|
void |
processLinear2DSet(SetType type,
double[] firsts,
double[] lasts,
int[] lengths,
CoordinateSystem cs,
Unit[] units,
ErrorEstimate[] errors,
Linear2DSet set,
Object token)
|
void |
processLinear3DSet(SetType type,
double[] firsts,
double[] lasts,
int[] lengths,
CoordinateSystem cs,
Unit[] units,
ErrorEstimate[] errors,
Linear3DSet set,
Object token)
|
void |
processLinearLatLonSet(SetType type,
double[] firsts,
double[] lasts,
int[] lengths,
CoordinateSystem cs,
Unit[] units,
ErrorEstimate[] errors,
LinearLatLonSet set,
Object token)
|
void |
processLinearNDSet(SetType type,
double[] firsts,
double[] lasts,
int[] lengths,
CoordinateSystem cs,
Unit[] units,
ErrorEstimate[] errors,
LinearNDSet set,
Object token)
|
void |
processList1DSet(SetType type,
float[] list,
CoordinateSystem cs,
Unit[] units,
List1DSet set,
Object token)
|
void |
processProductSet(SetType type,
SampledSet[] sets,
CoordinateSystem cs,
Unit[] units,
ErrorEstimate[] errors,
ProductSet set,
Object token)
|
void |
processReal(RealType type,
double value,
Unit unit,
ErrorEstimate error,
Real real,
Object token)
|
void |
processRealTuple(RealTupleType type,
Real[] components,
CoordinateSystem cs,
RealTuple rt,
Object token)
|
void |
processSampledSet(SetType st,
int manifold_dimension,
CoordinateSystem cs,
Unit[] units,
ErrorEstimate[] errors,
SampledSet set,
Object token)
|
void |
processSimpleSet(SetType st,
int manifold_dimension,
CoordinateSystem cs,
Unit[] units,
ErrorEstimate[] errors,
SimpleSet set,
Object token)
|
void |
processSingletonSet(RealTuple sample,
CoordinateSystem cs,
Unit[] units,
ErrorEstimate[] errors,
SingletonSet set,
Object token)
|
void |
processText(TextType type,
String value,
boolean missing,
Text text,
Object token)
|
void |
processTuple(TupleType type,
Data[] components,
Tuple t,
Object token)
|
void |
processUnionSet(SetType type,
SampledSet[] sets,
UnionSet set,
Object token)
|
void |
processUnknownData(DataImpl data,
Object token)
|
void |
save(DataImpl data)
Save a Data object to the file. |
void |
save(DataImpl data,
boolean bigObject)
Save a big Data object to the file. |
void |
setFile(File ref)
Open the specified file. |
void |
setFile(String name)
Open the named file. |
void |
setOutputStream(OutputStream stream)
|
Methods inherited from class visad.data.BaseDataProcessor |
---|
process, processLinear1DSet |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface visad.data.DataProcessor |
---|
process |
Constructor Detail |
---|
public BinaryWriter()
public BinaryWriter(String name) throws IOException
IOException
public BinaryWriter(File ref) throws IOException
IOException
public BinaryWriter(OutputStream stream) throws IOException
IOException
Method Detail |
---|
public void close() throws IOException
DataWriter
close
in interface DataWriter
IOException
- If there is a problem.public void flush() throws IOException
DataWriter
flush
in interface DataWriter
IOException
- If there is a problem.public final BinaryObjectCache getCoordinateSystemCache()
public final BinaryObjectCache getErrorEstimateCache()
public final DataOutput getOutput()
public final BinaryObjectCache getTypeCache()
public final BinaryObjectCache getUnitCache()
public void processDoubleSet(SetType type, CoordinateSystem cs, Unit[] units, DoubleSet set, Object token) throws VisADException
processDoubleSet
in interface DataProcessor
processDoubleSet
in class BaseDataProcessor
VisADException
public void processFieldImpl(FunctionType type, Set set, FieldImpl fld, Object token) throws VisADException
processFieldImpl
in interface DataProcessor
processFieldImpl
in class BaseDataProcessor
VisADException
public void processFlatField(FunctionType type, Set domainSet, CoordinateSystem cs, CoordinateSystem[] rangeCS, Set[] rangeSets, Unit[] units, FlatField fld, Object token) throws VisADException
processFlatField
in interface DataProcessor
processFlatField
in class BaseDataProcessor
VisADException
public void processFloatSet(SetType type, CoordinateSystem cs, Unit[] units, FloatSet set, Object token) throws VisADException
processFloatSet
in interface DataProcessor
processFloatSet
in class BaseDataProcessor
VisADException
public void processGridded1DDoubleSet(SetType type, double[][] samples, int[] lengths, CoordinateSystem cs, Unit[] units, ErrorEstimate[] errors, Gridded1DDoubleSet set, Object token) throws VisADException
processGridded1DDoubleSet
in interface DataProcessor
processGridded1DDoubleSet
in class BaseDataProcessor
VisADException
public void processGridded2DDoubleSet(SetType type, double[][] samples, int[] lengths, CoordinateSystem cs, Unit[] units, ErrorEstimate[] errors, Gridded2DDoubleSet set, Object token) throws VisADException
processGridded2DDoubleSet
in interface DataProcessor
processGridded2DDoubleSet
in class BaseDataProcessor
VisADException
public void processGridded3DDoubleSet(SetType type, double[][] samples, int[] lengths, CoordinateSystem cs, Unit[] units, ErrorEstimate[] errors, Gridded3DDoubleSet set, Object token) throws VisADException
processGridded3DDoubleSet
in interface DataProcessor
processGridded3DDoubleSet
in class BaseDataProcessor
VisADException
public void processGridded1DSet(SetType type, float[][] samples, int[] lengths, CoordinateSystem cs, Unit[] units, ErrorEstimate[] errors, Gridded1DSet set, Object token) throws VisADException
processGridded1DSet
in interface DataProcessor
processGridded1DSet
in class BaseDataProcessor
VisADException
public void processGridded2DSet(SetType type, float[][] samples, int[] lengths, CoordinateSystem cs, Unit[] units, ErrorEstimate[] errors, Gridded2DSet set, Object token) throws VisADException
processGridded2DSet
in interface DataProcessor
processGridded2DSet
in class BaseDataProcessor
VisADException
public void processGridded3DSet(SetType type, float[][] samples, int[] lengths, CoordinateSystem cs, Unit[] units, ErrorEstimate[] errors, Gridded3DSet set, Object token) throws VisADException
processGridded3DSet
in interface DataProcessor
processGridded3DSet
in class BaseDataProcessor
VisADException
public void processGriddedSet(SetType type, float[][] samples, int[] lengths, CoordinateSystem cs, Unit[] units, ErrorEstimate[] errors, GriddedSet set, Object token) throws VisADException
processGriddedSet
in interface DataProcessor
processGriddedSet
in class BaseDataProcessor
VisADException
public void processInteger1DSet(SetType type, int[] lengths, CoordinateSystem cs, Unit[] units, ErrorEstimate[] errors, Integer1DSet set, Object token) throws VisADException
processInteger1DSet
in interface DataProcessor
processInteger1DSet
in class BaseDataProcessor
VisADException
public void processInteger2DSet(SetType type, int[] lengths, CoordinateSystem cs, Unit[] units, ErrorEstimate[] errors, Integer2DSet set, Object token) throws VisADException
processInteger2DSet
in interface DataProcessor
processInteger2DSet
in class BaseDataProcessor
VisADException
public void processInteger3DSet(SetType type, int[] lengths, CoordinateSystem cs, Unit[] units, ErrorEstimate[] errors, Integer3DSet set, Object token) throws VisADException
processInteger3DSet
in interface DataProcessor
processInteger3DSet
in class BaseDataProcessor
VisADException
public void processIntegerNDSet(SetType type, int[] lengths, CoordinateSystem cs, Unit[] units, ErrorEstimate[] errors, IntegerNDSet set, Object token) throws VisADException
processIntegerNDSet
in interface DataProcessor
processIntegerNDSet
in class BaseDataProcessor
VisADException
public void processIrregular1DSet(SetType type, float[][] samples, CoordinateSystem cs, Unit[] units, ErrorEstimate[] errors, Irregular1DSet set, Object token) throws VisADException
processIrregular1DSet
in interface DataProcessor
processIrregular1DSet
in class BaseDataProcessor
VisADException
public void processIrregular2DSet(SetType type, float[][] samples, CoordinateSystem cs, Unit[] units, ErrorEstimate[] errors, Delaunay delaunay, Irregular2DSet set, Object token) throws VisADException
processIrregular2DSet
in interface DataProcessor
processIrregular2DSet
in class BaseDataProcessor
VisADException
public void processIrregular3DSet(SetType type, float[][] samples, CoordinateSystem cs, Unit[] units, ErrorEstimate[] errors, Delaunay delaunay, Irregular3DSet set, Object token) throws VisADException
processIrregular3DSet
in interface DataProcessor
processIrregular3DSet
in class BaseDataProcessor
VisADException
public void processIrregularSet(SetType type, float[][] samples, CoordinateSystem cs, Unit[] units, ErrorEstimate[] errors, Delaunay delaunay, IrregularSet set, Object token) throws VisADException
processIrregularSet
in interface DataProcessor
processIrregularSet
in class BaseDataProcessor
VisADException
public void processLinear1DSet(SetType type, double[] firsts, double[] lasts, int[] lengths, CoordinateSystem cs, Unit[] units, ErrorEstimate[] errors, Linear1DSet set, Object token) throws VisADException
processLinear1DSet
in interface DataProcessor
processLinear1DSet
in class BaseDataProcessor
VisADException
public void processLinear2DSet(SetType type, double[] firsts, double[] lasts, int[] lengths, CoordinateSystem cs, Unit[] units, ErrorEstimate[] errors, Linear2DSet set, Object token) throws VisADException
processLinear2DSet
in interface DataProcessor
processLinear2DSet
in class BaseDataProcessor
VisADException
public void processLinear3DSet(SetType type, double[] firsts, double[] lasts, int[] lengths, CoordinateSystem cs, Unit[] units, ErrorEstimate[] errors, Linear3DSet set, Object token) throws VisADException
processLinear3DSet
in interface DataProcessor
processLinear3DSet
in class BaseDataProcessor
VisADException
public void processLinearLatLonSet(SetType type, double[] firsts, double[] lasts, int[] lengths, CoordinateSystem cs, Unit[] units, ErrorEstimate[] errors, LinearLatLonSet set, Object token) throws VisADException
processLinearLatLonSet
in interface DataProcessor
processLinearLatLonSet
in class BaseDataProcessor
VisADException
public void processLinearNDSet(SetType type, double[] firsts, double[] lasts, int[] lengths, CoordinateSystem cs, Unit[] units, ErrorEstimate[] errors, LinearNDSet set, Object token) throws VisADException
processLinearNDSet
in interface DataProcessor
processLinearNDSet
in class BaseDataProcessor
VisADException
public void processList1DSet(SetType type, float[] list, CoordinateSystem cs, Unit[] units, List1DSet set, Object token) throws VisADException
processList1DSet
in interface DataProcessor
processList1DSet
in class BaseDataProcessor
VisADException
public void processProductSet(SetType type, SampledSet[] sets, CoordinateSystem cs, Unit[] units, ErrorEstimate[] errors, ProductSet set, Object token) throws VisADException
processProductSet
in interface DataProcessor
processProductSet
in class BaseDataProcessor
VisADException
public void processReal(RealType type, double value, Unit unit, ErrorEstimate error, Real real, Object token) throws VisADException
processReal
in interface DataProcessor
processReal
in class BaseDataProcessor
VisADException
public void processRealTuple(RealTupleType type, Real[] components, CoordinateSystem cs, RealTuple rt, Object token) throws VisADException
processRealTuple
in interface DataProcessor
processRealTuple
in class BaseDataProcessor
VisADException
public void processSampledSet(SetType st, int manifold_dimension, CoordinateSystem cs, Unit[] units, ErrorEstimate[] errors, SampledSet set, Object token) throws VisADException
processSampledSet
in interface DataProcessor
processSampledSet
in class BaseDataProcessor
VisADException
public void processSimpleSet(SetType st, int manifold_dimension, CoordinateSystem cs, Unit[] units, ErrorEstimate[] errors, SimpleSet set, Object token) throws VisADException
processSimpleSet
in interface DataProcessor
processSimpleSet
in class BaseDataProcessor
VisADException
public void processSingletonSet(RealTuple sample, CoordinateSystem cs, Unit[] units, ErrorEstimate[] errors, SingletonSet set, Object token) throws VisADException
processSingletonSet
in interface DataProcessor
processSingletonSet
in class BaseDataProcessor
VisADException
public void processText(TextType type, String value, boolean missing, Text text, Object token) throws VisADException
processText
in interface DataProcessor
processText
in class BaseDataProcessor
VisADException
public void processTuple(TupleType type, Data[] components, Tuple t, Object token) throws VisADException
processTuple
in interface DataProcessor
processTuple
in class BaseDataProcessor
VisADException
public void processUnionSet(SetType type, SampledSet[] sets, UnionSet set, Object token) throws VisADException
processUnionSet
in interface DataProcessor
processUnionSet
in class BaseDataProcessor
VisADException
public void processUnknownData(DataImpl data, Object token) throws VisADException
processUnknownData
in interface DataProcessor
processUnknownData
in class BaseDataProcessor
VisADException
public void save(DataImpl data) throws VisADException
data
- Data object to save
VisADException
- if the save fails.public void save(DataImpl data, boolean bigObject) throws VisADException
data
- Data object to savebigObject
- true if this is a really big object
VisADException
- if the save fails.public void setFile(String name) throws IOException
DataWriter
setFile
in interface DataWriter
name
- The path used to open the file.
IOException
- If there is a problem.public void setFile(File ref) throws IOException
DataWriter
setFile
in interface DataWriter
ref
- The file.
IOException
- If there is a problem.public void setOutputStream(OutputStream stream) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |