|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.d.umn.fileformats.ElevationFile
edu.d.umn.fileformats.DDFFileAbstract
public abstract class DDFFileAbstract
Provides basic methods to allow for tarballed DDF files or untarred DDF files.
Field Summary | |
---|---|
protected java.lang.String |
fileID
|
protected int |
lengthOfFirstDirectoryElement
|
protected int |
lengthOfLastDirectoryElement
|
protected int |
lengthOfNextDirectoryElement
|
protected int |
numDirectoryElements
|
protected int |
startingPointOfDDA
|
Fields inherited from class edu.d.umn.fileformats.ElevationFile |
---|
elevations, fileName, filePath, groundCoordinates, maxElevation, minElevation, nColumns, nRows, quadrangleName, resolution |
Constructor Summary | |
---|---|
DDFFileAbstract()
Creates a new instance of DDFFileAbstract |
Method Summary | |
---|---|
protected int |
processElevations(java.io.InputStream reader)
|
protected int |
processGroundCoordinates(java.io.InputStream reader)
Searches through the iden file of the ddf records to get the north and west latitude and longitude. |
protected int |
processLeader(java.io.InputStream reader)
Parses the contents of a data record leader. |
protected int |
processMinMaxElevation(java.io.InputStream reader)
Searches through the ddom file of the ddf records to get the minimum and maximum elevation. |
protected int |
processRowColMax(java.io.InputStream reader)
Searches the ldef file to find the number of rows and columns to expect for the elevation data. |
Methods inherited from class edu.d.umn.fileformats.ElevationFile |
---|
getResolution |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int numDirectoryElements
protected int lengthOfFirstDirectoryElement
protected int lengthOfNextDirectoryElement
protected int lengthOfLastDirectoryElement
protected int startingPointOfDDA
protected java.lang.String fileID
Constructor Detail |
---|
public DDFFileAbstract()
Method Detail |
---|
protected int processLeader(java.io.InputStream reader) throws java.io.IOException, java.net.MalformedURLException
reader
- The InputStream
to work with.
java.io.IOException
java.net.MalformedURLException
protected int processGroundCoordinates(java.io.InputStream reader) throws java.io.IOException
java.io.IOException
protected int processMinMaxElevation(java.io.InputStream reader) throws java.io.IOException
java.io.IOException
protected int processElevations(java.io.InputStream reader) throws java.io.IOException
java.io.IOException
protected int processRowColMax(java.io.InputStream reader) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |