Class VRMLContentHandlerFactory

java.lang.Object
org.web3d.net.content.VRMLContentHandlerFactory
All Implemented Interfaces:
org.ietf.uri.ContentHandlerFactory
Direct Known Subclasses:
AWTContentHandlerFactory

public class VRMLContentHandlerFactory extends Object implements org.ietf.uri.ContentHandlerFactory
A Factory implementation for VRML content handlers that produces VRML output.

The factory implementation only handles UTF8 encoded files currently. We have not yet built a handler for XML encoded files.

This factory is not automatically registered with the system. If you want or need to load inlines, then you must create and instance of this factory and register it as a content handler factory with the URI system. For example

     BrowserCore core = ....
     WorldLoaderManager loader = ....

     ContentHandlerFactory c_fac = URI.getContentHandlerFactory();
     if(!(c_fac instanceof VRMLContentHandlerFactory)) {
         c_fac = new VRMLContentHandlerFactory(core, loader, c_fac);
         URI.setContentHandlerFactory(c_fac);
     }
 
If a previous content handler was registered and it was not one of this class it will be chained to this class. If we can't find the content then we can ask the chained factory.
Version:
$Revision: 1.13 $
Author:
Justin Couch