Package tritechgemini.fileio
Class GLFFastInputStream
java.lang.Object
java.io.InputStream
tritechgemini.fileio.GLFFastInputStream
- All Implemented Interfaces:
Closeable,Serializable,AutoCloseable
Fast reading of uncompressed GLF files. GLF files are a zip archive of
sonar data with the main .dat data file and one or two configuration files.
so far as I can tell, only the .dat file is important. This class makes it
possible to read the dat file from the GLF file without actually unzipping
the archive.
- Author:
- Doug Gillespie
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanstatic CPUMonitorstatic CPUMonitorstatic CPUMonitor -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skipNBytes, transferTo
-
Field Details
-
isOk
protected boolean isOk -
skipMonitor
-
readMonitor
-
loadMonitor
-
-
Constructor Details
-
GLFFastInputStream
- Throws:
FileNotFoundException
-
-
Method Details
-
getGlfFastFile
Get a name for a fast glf data file. Basicaly the glf file with .ind on the end- Parameters:
glfFile-- Returns:
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classInputStream- Throws:
IOException
-
available
- Overrides:
availablein classInputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
toString
-
resetDataStream
- Throws:
IOException
-
getGlfFile
- Returns:
- the glfFile
-
setGlfFile
- Parameters:
glfFile- the glfFile to set
-