Xj3D VRML/X3D Code API

org.web3d.parser
Class DefaultVRMLParserFactory

java.lang.Object
  extended byorg.web3d.vrml.parser.VRMLParserFactory
      extended byorg.web3d.parser.DefaultVRMLParserFactory

public class DefaultVRMLParserFactory
extends VRMLParserFactory

Default implementation of a factory for parsers for VRML content.

Current implementation is just a skeleton until we develop a complete parser.

Version:
$Revision: 1.2 $
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
DefaultVRMLParserFactory()
          Construct a default instance of this factory.
 
Method Summary
 boolean hasFeature(java.lang.String feature, java.lang.String version)
          Check to see if this implementation has the nominated feature.
 VRMLReader newVRMLReader()
          Request a new instance of a VRMLReader to parse documents.
 
Methods inherited from class org.web3d.vrml.parser.VRMLParserFactory
getProperty, newVRMLParserFactory, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultVRMLParserFactory

public DefaultVRMLParserFactory()
Construct a default instance of this factory.

Method Detail

newVRMLReader

public VRMLReader newVRMLReader()
Request a new instance of a VRMLReader to parse documents.

Specified by:
newVRMLReader in class VRMLParserFactory
Returns:
A new reader instance

hasFeature

public boolean hasFeature(java.lang.String feature,
                          java.lang.String version)
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 class VRMLParserFactory
Parameters:
feature - The name of the feature requested
version - The version of the feature required or null for none
Returns:
true if the feature and version is supported

Xj3D VRML/X3D Code API

Copyright © 2001 - 2005 Web3D Consortium