|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.wisc.ssec.mcidasv.data.HeaderInfo
public class HeaderInfo
Field Summary | |
---|---|
static String |
BANDFILES
|
static String |
BANDNAMES
|
static String |
BIGENDIAN
|
static String |
BYTEORDER
|
static String |
DATATYPE
|
static String |
DESCRIPTION
|
static String |
ELEMENTS
|
private String |
headerFile
The url |
static String |
INTERLEAVE
|
static int |
kFormat1ByteUInt
|
static int |
kFormat2ByteSInt
|
static int |
kFormat2ByteUInt
|
static int |
kFormat2x8Byte
|
static int |
kFormat4ByteFloat
|
static int |
kFormat4ByteSInt
|
static int |
kFormat8ByteDouble
|
static int |
kFormatASCII
|
static int |
kFormatImage
|
static int |
kFormatUnknown
|
static String |
kInterleaveByLine
|
static String |
kInterleaveByPixel
|
static String |
kInterleaveSequential
|
static int |
kNavigationBounds
|
static int |
kNavigationFiles
|
static int |
kNavigationUnknown
|
static String |
LINES
|
static String |
MISSINGVALUE
|
static String |
NAVBOUNDS
|
static String |
NAVFILES
|
static String |
OFFSET
|
private Hashtable |
parameters
|
static String |
UNIT
|
Constructor Summary | |
---|---|
HeaderInfo()
Ctor for xml encoding |
|
HeaderInfo(File thisFile)
CTOR |
|
HeaderInfo(String filename)
CTOR |
Method Summary | |
---|---|
boolean |
doesExist()
Does the file we are pointing to even exist? |
int |
getBandCount()
Get the number of bands this header knows about |
String |
getFilename()
Get the filename we are working with |
Boolean |
getParameter(String parameter,
Boolean defaultValue)
|
Float |
getParameter(String parameter,
Float defaultValue)
|
Integer |
getParameter(String parameter,
Integer defaultValue)
|
List |
getParameter(String parameter,
List defaultValue)
|
String |
getParameter(String parameter,
String defaultValue)
Return the matching header parameter if available, default value if not available |
boolean |
haveParsed()
Have we already parsed once? |
protected void |
parseHeader()
Override this when extending for a specific header type |
void |
setFilename(String filename)
Set the filename we are working with |
void |
setParameter(String parameter,
Object value)
Set a parsed parameter value |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int kFormatUnknown
public static final int kFormatASCII
public static final int kFormat1ByteUInt
public static final int kFormat2ByteSInt
public static final int kFormat4ByteSInt
public static final int kFormat4ByteFloat
public static final int kFormat8ByteDouble
public static final int kFormat2x8Byte
public static final int kFormat2ByteUInt
public static final int kFormatImage
public static final int kNavigationUnknown
public static final int kNavigationBounds
public static final int kNavigationFiles
public static final String kInterleaveSequential
public static final String kInterleaveByLine
public static final String kInterleaveByPixel
public static final String DESCRIPTION
public static final String ELEMENTS
public static final String LINES
public static final String UNIT
public static final String OFFSET
public static final String DATATYPE
public static final String MISSINGVALUE
public static final String BANDNAMES
public static final String BANDFILES
public static final String INTERLEAVE
public static final String BYTEORDER
public static final String BIGENDIAN
public static final String NAVBOUNDS
public static final String NAVFILES
private String headerFile
private Hashtable parameters
Constructor Detail |
---|
public HeaderInfo()
public HeaderInfo(File thisFile)
filename
- The filenamepublic HeaderInfo(String filename)
filename
- The filenameMethod Detail |
---|
public void setFilename(String filename)
public String getFilename()
public int getBandCount()
public String getParameter(String parameter, String defaultValue)
public Integer getParameter(String parameter, Integer defaultValue)
public Float getParameter(String parameter, Float defaultValue)
public Boolean getParameter(String parameter, Boolean defaultValue)
public List getParameter(String parameter, List defaultValue)
public void setParameter(String parameter, Object value)
public boolean haveParsed()
public boolean doesExist()
protected void parseHeader()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |