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 classHolds an CPOD header information - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic intgetDataSize(CPODUtils.CPODFileType fileType) static intgetHeadSize(CPODUtils.CPODFileType fileType) importCPODFile(File cpFile, int from, int maxNum) Import a CPOD file.static booleanisFileEnd(byte[] byteData) Is it the end of the file ?static voidTest the programstatic CPODReader.CPODHeaderreadHeader(BufferedInputStream bis, CPODUtils.CPODFileType cpFileType) static CPODReader.CPODHeaderreadHeader(File cpFile)  
- 
Constructor Details
- 
CPODReader
public CPODReader() 
 - 
 - 
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-
 
 -