Package cpod
Class CPODReader
java.lang.Object
cpod.CPODReader
Read CPOD data.
Note this should, as much as possible not have any PAMGuard based code.
- Author:
- Jamie Macaulay, Douglas Gillespie
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Holds an CPOD header information -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
getDataSize
(CPODUtils.CPODFileType fileType) static int
getHeadSize
(CPODUtils.CPODFileType fileType) importCPODFile
(File cpFile, int from, int maxNum) Import a CPOD file.static boolean
isFileEnd
(byte[] byteData) Is it the end of the file ?static void
Test the programstatic CPODReader.CPODHeader
readHeader
(BufferedInputStream bis, CPODUtils.CPODFileType cpFileType) static CPODReader.CPODHeader
readHeader
(File cpFile)
-
Constructor Details
-
Method Details
-
readHeader
-
readHeader
public static CPODReader.CPODHeader readHeader(BufferedInputStream bis, CPODUtils.CPODFileType cpFileType) -
importCPODFile
Import a CPOD file.- Parameters:
cpFile
- - the CP1 or CP3 file.from
- - the click index to save from. e.g. 100 means that only click 100 + in the file is savedmaxNum
- - the maximum number to import- Returns:
- the total number of clicks in the file.
-
getHeadSize
-
getDataSize
-
isFileEnd
public static boolean isFileEnd(byte[] byteData) Is it the end of the file ?- Parameters:
byteData
-- Returns:
- true if all bytes == 255
-
main
Test the program- Parameters:
args
-
-