Class VRMLParserFactory

java.lang.Object
org.web3d.vrml.parser.VRMLParserFactory
Direct Known Subclasses:
BinaryX3DParserFactory, DefaultVRMLParserFactory

public abstract class VRMLParserFactory extends Object
Representation of a parser factory for VRML content.

This is the representation of a basic VRML parser. An parser implementation would extend this instance to provide a specific parser. The implementation class is specified by defining a system property

    org.web3d.vrml.parser.file.factory
 
The value of this property is the fully qualified class name of that implementation. When the newVRMLParserFactory() method is called it will read that property and create a new instance using reflection. The implementation must have a public, zero argument constructor in order to be loaded.

Each time the newVRMLParserFactory() method is called, it will re-read the property and create an instance of the class. This allows you to create different parser instances for each call within the one JVM instance. If no property is defined then the default implementation is used.

All factories are required to support the feature name "VRML-utf8". The version is the VRML specification version supported in the UTF8 encoding (it is also possible the binary version may use this, but definitely not XML encoding).

The following a standard properties that may be required of all factories and readers

NameValuesDefaultDescription
Required-Version "2.0", "3.0" NULL When defined it says that the VRMLReader provided must only support the given version. If it is not supplied then the reader will do its best effort to adapt it's parsing to the version supplied in the stream's header
Required-Format "VRML", "X3D" NULL When defined it says to use this specific file format for the specification.
Version:
$Revision: 1.10 $
Author:
Justin Couch