Class CdfList

java.lang.Object
uk.ac.bristol.star.cdf.util.CdfList

public class CdfList extends Object
Utility to describe a CDF file, optionally with record data. Intended to be used from the commandline via the main method. The output format is somewhat reminiscent of the cdfdump command in the CDF distribution.
Since:
21 Jun 2013
  • Constructor Details

    • CdfList

      public CdfList(CdfContent cdf, PrintStream out, boolean writeData)
      Constructor.
      Parameters:
      cdf - CDF content
      out - output stream for listing
      writeData - true if data values as well as metadata are to be written
  • Method Details

    • run

      public void run() throws IOException
      Does the work, writing output.
      Throws:
      IOException
    • runMain

      public static int runMain(String[] args) throws IOException
      Does the work for the command line tool, handling arguments. Sucess is indicated by the return value.
      Parameters:
      args - command-line arguments
      Returns:
      0 for success, non-zero for failure
      Throws:
      IOException
    • main

      public static void main(String[] args) throws IOException
      Main method. Use -help for arguments.
      Throws:
      IOException