public class DefaultHDRFile extends AbstractFormatFile implements HDRFile
FILE_EXTENSION, LAYOUT_BIL, LAYOUT_BIP, LAYOUT_BSQ, NONE
Constructor and Description |
---|
DefaultHDRFile() |
Modifier and Type | Method and Description |
---|---|
int |
getBandgapbytes() |
int |
getBandrowbytes() |
int |
getBandSize() |
java.nio.ByteOrder |
getByteorder() |
int |
getCellsize() |
java.lang.String |
getComments() |
int |
getDataType() |
Envelope |
getEnvelope() |
java.io.File |
getFile() |
java.io.File |
getFile(java.io.File file) |
java.lang.String |
getLayout() |
int |
getNbands() |
int |
getNbits() |
int |
getNcols() |
double |
getNodata_value() |
int |
getNrows() |
int |
getSkipbytes() |
int |
getTotalrowbytes() |
double |
getUlxmax() |
double |
getUlymax() |
double |
getXdim() |
double |
getXllcorner() |
double |
getYdim() |
double |
getYllcorner() |
boolean |
isValid() |
void |
read(java.io.File file) |
void |
setByteOrder(java.nio.ByteOrder order) |
void |
setComments(java.lang.String comments) |
void |
setDataType(int dataType) |
void |
setDimensions(int nrows,
int ncols,
Envelope envelope) |
void |
setNBands(int nbands) |
void |
write(java.io.File file) |
writeQuietly
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
writeQuietly
public java.io.File getFile(java.io.File file)
getFile
in interface FormatFile
public java.io.File getFile()
getFile
in interface FormatFile
public void read(java.io.File file) throws java.io.IOException
read
in interface FormatFile
java.io.IOException
public int getDataType()
getDataType
in interface HDRFile
public void write(java.io.File file) throws java.io.IOException
write
in interface FormatFile
java.io.IOException
public void setByteOrder(java.nio.ByteOrder order)
setByteOrder
in interface HDRFile
public void setDataType(int dataType)
setDataType
in interface HDRFile
public void setDimensions(int nrows, int ncols, Envelope envelope)
setDimensions
in interface HDRFile
public Envelope getEnvelope()
getEnvelope
in interface HDRFile
public java.nio.ByteOrder getByteorder()
getByteorder
in interface HDRFile
public java.lang.String getLayout()
public int getSkipbytes()
getSkipbytes
in interface HDRFile
public double getUlxmax()
public double getUlymax()
public int getBandrowbytes()
getBandrowbytes
in interface HDRFile
public int getTotalrowbytes()
getTotalrowbytes
in interface HDRFile
public int getBandgapbytes()
getBandgapbytes
in interface HDRFile
public java.lang.String getComments()
getComments
in interface HDRFile
public void setComments(java.lang.String comments)
setComments
in interface HDRFile
comments
- the comments to setpublic double getNodata_value()
getNodata_value
in interface HDRFile
public double getXllcorner()
getXllcorner
in interface HDRFile
public double getYllcorner()
getYllcorner
in interface HDRFile
public int getCellsize()
getCellsize
in interface HDRFile
public int getBandSize()
getBandSize
in interface HDRFile