|
|||||||||
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.UserBlock
public class UserBlock
Create the user block for the RDR file.
Field Summary | |
---|---|
private MissionName |
missionName
|
private java.io.RandomAccessFile |
out
|
private PlatformShortName |
platformShortName
|
private java.util.List<RDR> |
rdrs
|
private java.lang.StringBuffer |
xmlBuffer
|
Constructor Summary | |
---|---|
UserBlock(MissionName missionName,
PlatformShortName platformShortName,
java.util.List<RDR> rdrs)
Use the mission name, the platform short and the list of RDR sensors in the file to build the user block |
Method Summary | |
---|---|
void |
close()
Close the internal descriptor used to write the UserBlock portion of the file |
MissionName |
getMissionName()
Return the mission name |
int |
getNumberOfProducts()
Return the number products (RDR objects) being used |
PlatformShortName |
getPlatformShortName()
Return the platform short name |
java.util.List<RDR> |
getRDRs()
Return the list of RDR object used as inputs into the user block |
java.lang.StringBuffer |
getXML()
Return the XML created from the inputs |
private void |
rdrProductToXML(RDRProduct rdrProduct)
Build out the XML related to the RDRProduct objects |
private void |
toXML()
Build out the XML #1 |
void |
write(java.io.File hdfFile)
Write the XML to the UserBlock of the RDR file given the HDF file handle. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private MissionName missionName
private PlatformShortName platformShortName
private java.util.List<RDR> rdrs
private java.lang.StringBuffer xmlBuffer
private java.io.RandomAccessFile out
Constructor Detail |
---|
public UserBlock(MissionName missionName, PlatformShortName platformShortName, java.util.List<RDR> rdrs)
missionName
- the mission nameplatformShortName
- the platform short namerdrs
- the list of RDR objectsMethod Detail |
---|
public MissionName getMissionName()
public PlatformShortName getPlatformShortName()
public int getNumberOfProducts()
public java.util.List<RDR> getRDRs()
public java.lang.StringBuffer getXML()
public void write(java.io.File hdfFile) throws RtStpsException
hdfFile
- the handle to the RDR file
RtStpsException
- wraps any IOExceptions as an RtStpsExceptionpublic void close() throws RtStpsException
RtStpsException
private void toXML()
private void rdrProductToXML(RDRProduct rdrProduct)
rdrProduct
- RDRProduct of interest
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |