|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvisad.data.netcdf.out.DataAccessor
visad.data.netcdf.out.TextAccessor
The TextAccessor class accesses character data in a VisAD Text that's being adapted to a netCDF API. It's useful for exporting data to a netCDF dataset.
| Field Summary | |
protected Dimension[] |
localDims
The netCDF Dimensions of the VisAD data object in netCDF order (outermost dimension first). |
protected int[] |
localIndexes
The netCDF indexes for the local VisAD data object in netCDF order (outermost dimension first). |
protected int |
localRank
The number of netCDF dimensions in the VisAD data object. |
protected VisADAccessor |
outerAccessor
The VisADAccessor of the outer VisAD data object. |
protected int[] |
outerIndexes
The netCDF indexes for the outer VisAD data object in netCDF order (outermost dimension first). |
protected int |
outerRank
The number of netCDF dimensions in the outer VisAD data object. |
| Constructor Summary | |
protected |
TextAccessor(Dimension charDim,
VisADAccessor outerAccessor)
Construct from a netCDF Dimension and an outer VisADAccessor. |
| Method Summary | |
protected Object |
get()
Return a datum given the split, netCDF indexes. |
Object |
get(int[] indexes)
Return a datum given its location as netCDF indexes. |
Dimension[] |
getDimensions()
Return the netCDF dimensions at the level of the data object. |
int[] |
getLengths()
Return the netCDF dimensional lengths. |
int |
getRank()
Return the number of netCDF dimensions at the current level. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected final int localRank
protected final Dimension[] localDims
protected volatile int[] localIndexes
protected final VisADAccessor outerAccessor
protected final int outerRank
protected volatile int[] outerIndexes
| Constructor Detail |
protected TextAccessor(Dimension charDim,
VisADAccessor outerAccessor)
charDim - The netCDF character dimension (i.e. innermost
netCDF dimension).outerAccessor - The DataAccessor for the encompasing VisAD
data object. Returns Text objects.| Method Detail |
protected Object get()
throws IOException,
StringIndexOutOfBoundsException
get in class DataAccessorlocalIndexes and
outerIndexes.
IOException - Data access I/O failure.
StringIndexOutOfBoundsException - The character position given by
localIndexes was out-of-bounds.public int getRank()
getRank in interface VisADAccessorpublic Dimension[] getDimensions()
getDimensions in interface VisADAccessorpublic int[] getLengths()
getLengths in interface VisADAccessor
public Object get(int[] indexes)
throws IOException
get in interface VisADAccessorindexes - The netCDF indexes for the datum.
Tuple) or Java
primitive (e.g. Double) corresponding to
the given position.
IOException - The corresponding datum couldn't be accessed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||