Package org.web3d.net.protocol
Class Web3DResourceFactory
java.lang.Object
org.web3d.net.protocol.Web3DResourceFactory
- All Implemented Interfaces:
org.ietf.uri.URIResourceStreamFactory
A factory for producing resources specific to Web3D-only. The current factory supports handlers for the ecmascript and jar protocol types.
- Version:
- $Revision: 1.4 $
- Author:
- Justin Couch
-
Constructor Summary
ConstructorsConstructorDescriptionWeb3DResourceFactory
(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
-
Web3DResourceFactory
public Web3DResourceFactory(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
-