The FilterFileByChunk program filters an input file to an output file using the Java API method doFilterChunk()
. The method filters an input source and returns one chunk of output data. The program calls the method repeatedly until the entire file is processed.
To run FilterFileByChunk
on Windows
In the FilterFileByChunk.bat
file, set NSTALL_DIR
to the Filter installation directory.
Run the batch file in the directory install\javaapi\sample
, where install
is the path name of the Filter installation directory. Type the following:
filterfilebychunk inputfile outputfile
where,
inputfile
is the path and file name of the source file.
outputfile
is the path and file name of the generated file. If a path is not specified, the file is output to the current directory.
To run FilterFileByChunk
on UNIX
In the FilterFileByChunk.csh
file, set MKENV
to the platform you are running, either _hpux11
, _ilnx21
, _rs6k43
, or _ssol26
.
In the FilterFileByChunk.csh
file, set INSTALL_DIR
to the Filter installation directory.
Run the C shell file in the directory install/javaapi/sample
, where install
is the path name of the Filter installation directory. Type the following:
/FilterFileByChunk.csh inputfile outputfile
where,
inputfile
is the path and file name of the source file.
outputfile
is the path and file name of the generated file. If a path is not specified, the file is output to the current directory.
|