|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.web3d.net.content.VRMLContentHandlerFactory
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.
| Constructor Summary | |
VRMLContentHandlerFactory(BrowserCore browser,
WorldLoaderManager wlm)
Create a default content handler factory that does not chain to any further packages. |
|
VRMLContentHandlerFactory(BrowserCore browser,
WorldLoaderManager wlm,
org.ietf.uri.ContentHandlerFactory fac)
Create a content handler factory that may delegate to another factory if this one cannot support the content types requested. |
|
| Method Summary | |
org.ietf.uri.ContentHandler |
createContentHandler(java.lang.String contentType)
Create a content handler for the given mime type. |
org.ietf.uri.ContentHandlerFactory |
getWrappedFactory()
Get the chained content handler factory if it has been set. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public VRMLContentHandlerFactory(BrowserCore browser,
WorldLoaderManager wlm)
VRMLContentHandlerFactory(factory, clk, null).
browser - The core representation of the browserwlm - Loader manager for doing async calls
public VRMLContentHandlerFactory(BrowserCore browser,
WorldLoaderManager wlm,
org.ietf.uri.ContentHandlerFactory fac)
browser - The core representation of the browserfac - The factory to delegate to if we failwlm - Loader manager for doing async calls| Method Detail |
public org.ietf.uri.ContentHandler createContentHandler(java.lang.String contentType)
null to allow other
methods to be used.
createContentHandler in interface org.ietf.uri.ContentHandlerFactorycontentType - The MIME type of the handler needed
public org.ietf.uri.ContentHandlerFactory getWrappedFactory()
|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||