|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvisad.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 DataWriterIOException - If there is a problem.
public void flush()
throws IOException
DataWriter
flush in interface DataWriterIOException - 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 DataProcessorprocessDoubleSet in class BaseDataProcessorVisADException
public void processFieldImpl(FunctionType type,
Set set,
FieldImpl fld,
Object token)
throws VisADException
processFieldImpl in interface DataProcessorprocessFieldImpl in class BaseDataProcessorVisADException
public void processFlatField(FunctionType type,
Set domainSet,
CoordinateSystem cs,
CoordinateSystem[] rangeCS,
Set[] rangeSets,
Unit[] units,
FlatField fld,
Object token)
throws VisADException
processFlatField in interface DataProcessorprocessFlatField in class BaseDataProcessorVisADException
public void processFloatSet(SetType type,
CoordinateSystem cs,
Unit[] units,
FloatSet set,
Object token)
throws VisADException
processFloatSet in interface DataProcessorprocessFloatSet in class BaseDataProcessorVisADException
public void processGridded1DDoubleSet(SetType type,
double[][] samples,
int[] lengths,
CoordinateSystem cs,
Unit[] units,
ErrorEstimate[] errors,
Gridded1DDoubleSet set,
Object token)
throws VisADException
processGridded1DDoubleSet in interface DataProcessorprocessGridded1DDoubleSet in class BaseDataProcessorVisADException
public void processGridded2DDoubleSet(SetType type,
double[][] samples,
int[] lengths,
CoordinateSystem cs,
Unit[] units,
ErrorEstimate[] errors,
Gridded2DDoubleSet set,
Object token)
throws VisADException
processGridded2DDoubleSet in interface DataProcessorprocessGridded2DDoubleSet in class BaseDataProcessorVisADException
public void processGridded3DDoubleSet(SetType type,
double[][] samples,
int[] lengths,
CoordinateSystem cs,
Unit[] units,
ErrorEstimate[] errors,
Gridded3DDoubleSet set,
Object token)
throws VisADException
processGridded3DDoubleSet in interface DataProcessorprocessGridded3DDoubleSet in class BaseDataProcessorVisADException
public void processGridded1DSet(SetType type,
float[][] samples,
int[] lengths,
CoordinateSystem cs,
Unit[] units,
ErrorEstimate[] errors,
Gridded1DSet set,
Object token)
throws VisADException
processGridded1DSet in interface DataProcessorprocessGridded1DSet in class BaseDataProcessorVisADException
public void processGridded2DSet(SetType type,
float[][] samples,
int[] lengths,
CoordinateSystem cs,
Unit[] units,
ErrorEstimate[] errors,
Gridded2DSet set,
Object token)
throws VisADException
processGridded2DSet in interface DataProcessorprocessGridded2DSet in class BaseDataProcessorVisADException
public void processGridded3DSet(SetType type,
float[][] samples,
int[] lengths,
CoordinateSystem cs,
Unit[] units,
ErrorEstimate[] errors,
Gridded3DSet set,
Object token)
throws VisADException
processGridded3DSet in interface DataProcessorprocessGridded3DSet in class BaseDataProcessorVisADException
public void processGriddedSet(SetType type,
float[][] samples,
int[] lengths,
CoordinateSystem cs,
Unit[] units,
ErrorEstimate[] errors,
GriddedSet set,
Object token)
throws VisADException
processGriddedSet in interface DataProcessorprocessGriddedSet in class BaseDataProcessorVisADException
public void processInteger1DSet(SetType type,
int[] lengths,
CoordinateSystem cs,
Unit[] units,
ErrorEstimate[] errors,
Integer1DSet set,
Object token)
throws VisADException
processInteger1DSet in interface DataProcessorprocessInteger1DSet in class BaseDataProcessorVisADException
public void processInteger2DSet(SetType type,
int[] lengths,
CoordinateSystem cs,
Unit[] units,
ErrorEstimate[] errors,
Integer2DSet set,
Object token)
throws VisADException
processInteger2DSet in interface DataProcessorprocessInteger2DSet in class BaseDataProcessorVisADException
public void processInteger3DSet(SetType type,
int[] lengths,
CoordinateSystem cs,
Unit[] units,
ErrorEstimate[] errors,
Integer3DSet set,
Object token)
throws VisADException
processInteger3DSet in interface DataProcessorprocessInteger3DSet in class BaseDataProcessorVisADException
public void processIntegerNDSet(SetType type,
int[] lengths,
CoordinateSystem cs,
Unit[] units,
ErrorEstimate[] errors,
IntegerNDSet set,
Object token)
throws VisADException
processIntegerNDSet in interface DataProcessorprocessIntegerNDSet in class BaseDataProcessorVisADException
public void processIrregular1DSet(SetType type,
float[][] samples,
CoordinateSystem cs,
Unit[] units,
ErrorEstimate[] errors,
Irregular1DSet set,
Object token)
throws VisADException
processIrregular1DSet in interface DataProcessorprocessIrregular1DSet in class BaseDataProcessorVisADException
public void processIrregular2DSet(SetType type,
float[][] samples,
CoordinateSystem cs,
Unit[] units,
ErrorEstimate[] errors,
Delaunay delaunay,
Irregular2DSet set,
Object token)
throws VisADException
processIrregular2DSet in interface DataProcessorprocessIrregular2DSet in class BaseDataProcessorVisADException
public void processIrregular3DSet(SetType type,
float[][] samples,
CoordinateSystem cs,
Unit[] units,
ErrorEstimate[] errors,
Delaunay delaunay,
Irregular3DSet set,
Object token)
throws VisADException
processIrregular3DSet in interface DataProcessorprocessIrregular3DSet in class BaseDataProcessorVisADException
public void processIrregularSet(SetType type,
float[][] samples,
CoordinateSystem cs,
Unit[] units,
ErrorEstimate[] errors,
Delaunay delaunay,
IrregularSet set,
Object token)
throws VisADException
processIrregularSet in interface DataProcessorprocessIrregularSet in class BaseDataProcessorVisADException
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 DataProcessorprocessLinear1DSet in class BaseDataProcessorVisADException
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 DataProcessorprocessLinear2DSet in class BaseDataProcessorVisADException
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 DataProcessorprocessLinear3DSet in class BaseDataProcessorVisADException
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 DataProcessorprocessLinearLatLonSet in class BaseDataProcessorVisADException
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 DataProcessorprocessLinearNDSet in class BaseDataProcessorVisADException
public void processList1DSet(SetType type,
float[] list,
CoordinateSystem cs,
Unit[] units,
List1DSet set,
Object token)
throws VisADException
processList1DSet in interface DataProcessorprocessList1DSet in class BaseDataProcessorVisADException
public void processProductSet(SetType type,
SampledSet[] sets,
CoordinateSystem cs,
Unit[] units,
ErrorEstimate[] errors,
ProductSet set,
Object token)
throws VisADException
processProductSet in interface DataProcessorprocessProductSet in class BaseDataProcessorVisADException
public void processReal(RealType type,
double value,
Unit unit,
ErrorEstimate error,
Real real,
Object token)
throws VisADException
processReal in interface DataProcessorprocessReal in class BaseDataProcessorVisADException
public void processRealTuple(RealTupleType type,
Real[] components,
CoordinateSystem cs,
RealTuple rt,
Object token)
throws VisADException
processRealTuple in interface DataProcessorprocessRealTuple in class BaseDataProcessorVisADException
public void processSampledSet(SetType st,
int manifold_dimension,
CoordinateSystem cs,
Unit[] units,
ErrorEstimate[] errors,
SampledSet set,
Object token)
throws VisADException
processSampledSet in interface DataProcessorprocessSampledSet in class BaseDataProcessorVisADException
public void processSimpleSet(SetType st,
int manifold_dimension,
CoordinateSystem cs,
Unit[] units,
ErrorEstimate[] errors,
SimpleSet set,
Object token)
throws VisADException
processSimpleSet in interface DataProcessorprocessSimpleSet in class BaseDataProcessorVisADException
public void processSingletonSet(RealTuple sample,
CoordinateSystem cs,
Unit[] units,
ErrorEstimate[] errors,
SingletonSet set,
Object token)
throws VisADException
processSingletonSet in interface DataProcessorprocessSingletonSet in class BaseDataProcessorVisADException
public void processText(TextType type,
String value,
boolean missing,
Text text,
Object token)
throws VisADException
processText in interface DataProcessorprocessText in class BaseDataProcessorVisADException
public void processTuple(TupleType type,
Data[] components,
Tuple t,
Object token)
throws VisADException
processTuple in interface DataProcessorprocessTuple in class BaseDataProcessorVisADException
public void processUnionSet(SetType type,
SampledSet[] sets,
UnionSet set,
Object token)
throws VisADException
processUnionSet in interface DataProcessorprocessUnionSet in class BaseDataProcessorVisADException
public void processUnknownData(DataImpl data,
Object token)
throws VisADException
processUnknownData in interface DataProcessorprocessUnknownData in class BaseDataProcessorVisADException
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 DataWritername - The path used to open the file.
IOException - If there is a problem.
public void setFile(File ref)
throws IOException
DataWriter
setFile in interface DataWriterref - 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 | |||||||||