Name

data filter — Run data filters from the command line

Synopsis

java org.nhrg.tool.DataFilter [ -h ] [ -v ] [ -V ] { [ -c implementation-class] [ -x xml-description] } [ -i input ] [ -I input-mime ] [ -o output ] [ -O output-mime ]

Description

Data filters can be run interactively directly from the command line, and scripted using this simple program interface.

The options are as follows:

-c implementation-class , --class implementation-class

the fully qualified name of a class, available from the CLASSPATH, that implements org.nhrg.data.DataFilter and that has to be applied to the data.

-h, --help

print help information and exit.

-i input , --input input

path or URL to the data source to filter.

-I input-mime , --in-mime input-mime

MIME-type of the data source to process. Defaults to Abeles' SDF data format.

-o output , --output output

path or URL to where to store the processed data.

-O output-mime , --out-mime output-mime

MIME-type of the format to use when saving. Defaults to Abeles' SDF data format.

-v, --verbose

print log to console.

-V, --version

print application version.

-x xml-description , --xml xml-description

the path to an XML description of the filter to apply, that should be valid according to http://www.nhrg.org/schema/data.

Example