Package org.web3d.net.protocol
Class JarResourceFactory
java.lang.Object
org.web3d.net.protocol.JarResourceFactory
- All Implemented Interfaces:
org.ietf.uri.URIResourceStreamFactory
A factory for producing resources specific to VRML97/X3D. The factory supports handlers for the jar protocol types only.
- Version:
- $Revision: 1.2 $
- Author:
- Justin Couch
-
Constructor Summary
ConstructorsConstructorDescriptionJarResourceFactory
(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
Modifier and TypeMethodDescriptionorg.ietf.uri.URIResourceStream
createURIResourceStream
(String protocol) Create a new resource stream for the given protocol.
-
Constructor Details
-
JarResourceFactory
public JarResourceFactory(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 Details
-
createURIResourceStream
Create a new resource stream for the given protocol. If none of the factories support it, return null.- Specified by:
createURIResourceStream
in interfaceorg.ietf.uri.URIResourceStreamFactory
- Parameters:
protocol
- The protocol handler- Returns:
- A new resource stream as needed or null
-