|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.gsfc.drl.rtstps.core.output.hdf5.AllDataReader
public class AllDataReader
Supports the reading of RDR files /All_Data group using an Iterator
.
The iterator returns a RDRAllReader
for each specific RDR found in
the group. The HDF file is assumed to have been been opened outside
this class.
Field Summary | |
---|---|
private int |
allDataGroupHandle
|
private long |
counter
|
private long |
numObjects
|
Constructor Summary | |
---|---|
AllDataReader(int hdfFile)
Open the /All_Data group of the HDF file specified in the input argument as a handle to an already open HDF file. |
|
AllDataReader(int allDataGroupHandle,
boolean useAllData)
Alternate constructor that takes as input an already open /All_Data handle instead of the HDF root handle. |
Method Summary | |
---|---|
void |
close()
Close the RDRAllReader |
int |
getCount()
Return the number of items in the group. |
java.lang.String[] |
getNames()
Return the names of the items found in the group |
RDRAllReader |
getRDRAllReaderByRDRName(RDRName rdrName)
Return an RDR All_Data reader ( RDRAllReader ) for the specified RDR in the /All_Data if it exists. |
boolean |
hasNext()
Return if there is another item in the /All_Data |
RDRAllReader |
next()
Return the next RDRAllReader |
void |
remove()
Not supported |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private int allDataGroupHandle
private long numObjects
private long counter
Constructor Detail |
---|
public AllDataReader(int hdfFile) throws RtStpsException
hdfFile
- a handle the already open HDF file
RtStpsException
- Wraps any HDF library exceptions in an RtStpsExceptionpublic AllDataReader(int allDataGroupHandle, boolean useAllData) throws RtStpsException
allDataGroupHandle
- already opened HDF handle to the /All_Data area of an RDR fileuseAllData
- value is ignored but differentiates constructors
RtStpsException
- Wraps any HDF library exceptions in an RtStpsExceptionMethod Detail |
---|
public RDRAllReader getRDRAllReaderByRDRName(RDRName rdrName) throws RtStpsException
RDRAllReader
) for the specified RDR in the /All_Data if it exists.
rdrName
- the name of the RDR of interest
RDRAllReader
for the named RDR if it exists in the /All_Data
RtStpsException
- Wraps any HDF library exceptions, including if the specified RDR does not exist.public void close() throws RtStpsException
RDRAllReader
RtStpsException
- Wraps any HDF library exceptionspublic int getCount()
int
count of the number of itemspublic java.lang.String[] getNames() throws RtStpsException
RtStpsException
- Wraps any HDF library exceptionspublic boolean hasNext()
hasNext
in interface java.util.Iterator<RDRAllReader>
public RDRAllReader next()
RDRAllReader
next
in interface java.util.Iterator<RDRAllReader>
public void remove()
remove
in interface java.util.Iterator<RDRAllReader>
RtStpsRuntimeException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |