Package uk.ac.bristol.star.cdf.util
Class CdfList
- java.lang.Object
-
- uk.ac.bristol.star.cdf.util.CdfList
-
public class CdfList extends java.lang.ObjectUtility to describe a CDF file, optionally with record data. Intended to be used from the commandline via themainmethod. The output format is somewhat reminiscent of thecdfdumpcommand in the CDF distribution.- Since:
- 21 Jun 2013
-
-
Constructor Summary
Constructors Constructor Description CdfList(CdfContent cdf, java.io.PrintStream out, boolean writeData)Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)Main method.voidrun()Does the work, writing output.static intrunMain(java.lang.String[] args)Does the work for the command line tool, handling arguments.
-
-
-
Constructor Detail
-
CdfList
public CdfList(CdfContent cdf, java.io.PrintStream out, boolean writeData)
Constructor.- Parameters:
cdf- CDF contentout- output stream for listingwriteData- true if data values as well as metadata are to be written
-
-
Method Detail
-
run
public void run() throws java.io.IOExceptionDoes the work, writing output.- Throws:
java.io.IOException
-
runMain
public static int runMain(java.lang.String[] args) throws java.io.IOExceptionDoes 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:
java.io.IOException
-
main
public static void main(java.lang.String[] args) throws java.io.IOExceptionMain method. Use -help for arguments.- Throws:
java.io.IOException
-
-