Package xj3d.filter
Class CDFFilter
java.lang.Object
xj3d.filter.CDFFilter
General X3D filter driver. Takes an input file or URL, filters
it and writes it out to a file.
- Version:
- $Revision: 1.57 $
- Author:
- Alan Hudson
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Exit code for an IO exception - use thePARSER_IOEXCEPTION_MSG
. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
executeFilters
(String[] args, boolean exit, OutputStream ostream, String enc) Execute a chain of filters.int
Load the named file.int
Load the named file.int
Go to the named URL location.Return an unmodifiable Map of the locally known filters.static void
Create an instance of this class and run it.void
Print out the filters available.
-
Field Details
-
IO_EXCEPTION
public static final int IO_EXCEPTIONExit code for an IO exception - use thePARSER_IOEXCEPTION_MSG
.- See Also:
-
-
Constructor Details
-
CDFFilter
public CDFFilter()Create an instance of the demo class.
-
-
Method Details
-
filter
Go to the named URL location. No checking is done other than to make sure it is a valid URL.- Parameters:
filters
- The identifier of the filter type.url
- The URL to open.out
- The output filename.fargs
- The argument array to pass into the filter class.- Returns:
- The status code indicating success or failure.
-
filter
Load the named file. The file is checked to make sure that it exists before calling this method.- Parameters:
filters
- The identifier of the filter type.file
- The file to load.out
- The output filename.fargs
- The argument array to pass into the filter class.- Returns:
- The status code indicating success or failure.
-
filter
Load the named file. The file is checked to make sure that it exists before calling this method.- Parameters:
filters
- The identifier of the filter type.file
- The file to load.out
- The output streamenc
- The encoding to writefargs
- The argument array to pass into the filter class.- Returns:
- The status code indicating success or failure.
-
printFilters
public void printFilters()Print out the filters available. -
getFilterMap
-
executeFilters
Execute a chain of filters.- Parameters:
args
- The list of arguments for this application.exit
- Should we use system exitostream
- If present output to this stream instead of a fileenc
- If ostream is used this specifies the encoding otherwise it's ignored.- Returns:
- The exit code
-
main
Create an instance of this class and run it. The single argument, if supplied is the name of the file to load initially. If not supplied it will start with a blank document.- Parameters:
args
- The list of arguments for this application.
-