Xj3D VRML/X3D Code API

org.web3d.net.protocol
Class JarResourceFactory

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

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

A factory for producing resources specfic to VRML97/X3D.

The factory supports handlers for the jar protocol types only.

Version:
$Revision: 1.2 $
Author:
Justin Couch

Constructor Summary
JarResourceFactory(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

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 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