Xj3D 2.0 VRML/X3D Code API

org.web3d.parser
Class BinaryX3DParserFactory

java.lang.Object
  extended by org.web3d.vrml.parser.VRMLParserFactory
      extended by org.web3d.parser.BinaryX3DParserFactory

public class BinaryX3DParserFactory
extends VRMLParserFactory

Implementation of a factory that will only generate parsers of X3D binary 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.1 $
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
BinaryX3DParserFactory()
          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

BinaryX3DParserFactory

public BinaryX3DParserFactory()
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 2.0 VRML/X3D Code API

Copyright © 2001 - 2006 Web3D Consortium