Xj3D VRML/X3D Code API

org.web3d.net.protocol
Class VRML97ResourceFactory

java.lang.Object
  extended byorg.web3d.net.protocol.VRML97ResourceFactory
All Implemented Interfaces:
org.ietf.uri.URIResourceStreamFactory

public class VRML97ResourceFactory
extends java.lang.Object
implements org.ietf.uri.URIResourceStreamFactory

A factory for producing resources specfic to VRML97-only.

The current factory supports handlers for the ecmascript and jar protocol types.

Version:
$Revision: 1.3 $
Author:
Justin Couch

Constructor Summary
VRML97ResourceFactory(org.ietf.uri.URIResourceStreamFactory fac)
          Create a new instance of the factory that uses the nested factory for anything this instance cannot support.
 
Method Summary
 org.ietf.uri.URIResourceStream createURIResourceStream(java.lang.String protocol)
          Create a new resource stream for the given protocol.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VRML97ResourceFactory

public VRML97ResourceFactory(org.ietf.uri.URIResourceStreamFactory fac)
Create a new instance of the factory that uses the nested factory for anything this instance cannot support. Use a value of null if not used.

Parameters:
fac - The factory instance to be used
Method Detail

createURIResourceStream

public org.ietf.uri.URIResourceStream createURIResourceStream(java.lang.String protocol)
Create a new resource stream for the given protocol. If none of the factories support it, return null.

Specified by:
createURIResourceStream in interface org.ietf.uri.URIResourceStreamFactory
Parameters:
protocol - The protocol handler
Returns:
A new resource stream as needed or null

Xj3D VRML/X3D Code API

Copyright © 2001 - 2005 Web3D Consortium