Class FieldParserFactory

java.lang.Object
org.web3d.vrml.parser.FieldParserFactory
Direct Known Subclasses:
DefaultFieldParserFactory

public abstract class FieldParserFactory extends Object
Representation of a parser factory for field 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.field.factory
 
The value of this property is the fully qualified class name of that implementation. When the ngetFieldParserFactory() 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.

Version:
$Revision: 1.4 $
Author:
Justin Couch