|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.bristol.star.cdf.util.CdfDump
public class CdfDump
Utility to dump the records of a CDF file, optionally with field values.
Intended to be used fro the command line via the main
method.
The function is roughly comparable to the cdfirsdump
command in the CDF distribution.
The output can optionally be written in HTML format. The point of this is so that field values which represent pointers to records can be displayed as hyperlinks, which makes it very easy to chase pointers around the CDF file in a web browser.
Constructor Summary | |
---|---|
CdfDump(CdfReader crdr,
java.io.PrintStream out,
boolean writeFields,
boolean html)
Constructor. |
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
Main method. |
void |
run()
Does the work, writing output. |
static int |
runMain(java.lang.String[] args)
Does the work for the command line tool, handling arguments. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CdfDump(CdfReader crdr, java.io.PrintStream out, boolean writeFields, boolean html)
crdr
- CDF readerout
- output stream for listingwriteFields
- true to write field data as well as record IDshtml
- true to write output in HTML formatMethod Detail |
---|
public void run() throws java.io.IOException
java.io.IOException
public static int runMain(java.lang.String[] args) throws java.io.IOException
args
- command-line arguments
java.io.IOException
public static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |