Package cpod

Class CPODReader

java.lang.Object
cpod.CPODReader

public class CPODReader extends Object
Read CPOD data.

Note this should, as much as possible not have any PAMGuard based code.

Author:
Jamie Macaulay, Douglas Gillespie
  • Constructor Details Link icon

    • CPODReader Link icon

      public CPODReader()
  • Method Details Link icon

    • readHeader Link icon

      public static CPODReader.CPODHeader readHeader(File cpFile)
    • readHeader Link icon

      public static CPODReader.CPODHeader readHeader(BufferedInputStream bis, CPODUtils.CPODFileType cpFileType)
    • importCPODFile Link icon

      protected static ArrayList<CPODClick> importCPODFile(File cpFile, int from, int maxNum)
      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 saved
      maxNum - - the maximum number to import
      Returns:
      the total number of clicks in the file.
    • getHeadSize Link icon

      public static int getHeadSize(CPODUtils.CPODFileType fileType)
    • getDataSize Link icon

      public static int getDataSize(CPODUtils.CPODFileType fileType)
    • isFileEnd Link icon

      public static boolean isFileEnd(byte[] byteData)
      Is it the end of the file ?
      Parameters:
      byteData -
      Returns:
      true if all bytes == 255
    • main Link icon

      public static void main(String[] args)
      Test the program
      Parameters:
      args -