Package org.web3d.parser
Class DefaultVRMLParserFactory
java.lang.Object
org.web3d.vrml.parser.VRMLParserFactory
org.web3d.parser.DefaultVRMLParserFactory
Default implementation of a factory for parsers for VRML and X3D content.
The parser factory will handle all 3 basic forms of request - VRML 2.0, X3D and a specific request for a binary parser.
- Version:
- $Revision: 1.6 $
- Author:
- Justin Couch
-
Field Summary
Fields inherited from class org.web3d.vrml.parser.VRMLParserFactory
FACTORY_CLASS_PROP, propertyMap, REQUIRE_FORMAT_PROP, REQUIRE_VERSION_PROP, VRML_FEATURE, X3D_FEATURE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
hasFeature
(String feature, String version) Check to see if this implementation has the nominated feature.Request a new instance of a VRMLReader to parse documents.Methods inherited from class org.web3d.vrml.parser.VRMLParserFactory
getProperty, newVRMLParserFactory, setProperty
-
Constructor Details
-
DefaultVRMLParserFactory
public DefaultVRMLParserFactory()Construct a default instance of this factory.
-
-
Method Details
-
newVRMLReader
Request a new instance of a VRMLReader to parse documents.- Specified by:
newVRMLReader
in classVRMLParserFactory
- Returns:
- A new reader instance
-
hasFeature
Check to see if this implementation has the nominated feature. If there is no version information passed, it will look for features of all versions. The special version string of '*' may be used to denote all or all versions of the named feature.- Specified by:
hasFeature
in classVRMLParserFactory
- Parameters:
feature
- The name of the feature requestedversion
- The version of the feature required or null for none- Returns:
- true if the feature and version is supported
-