Data Request Broker
2-3-release

fr.gael.drb.impl.jar
Class JarFactory

java.lang.Object
  extended by fr.gael.drb.impl.jar.JarFactory
All Implemented Interfaces:
DrbFactoryImpl

public class JarFactory
extends Object
implements DrbFactoryImpl

Factory of JAR nodes. This class implements the DrbFactoryImpl interface to create drb.impl.jar.JarNode nodes that handles JAR entries. This factory is not supposed to be used directly from any component but has been designed for the fr.gael.drb. Factory class.


Constructor Summary
JarFactory()
           
 
Method Summary
 String getIdentifier()
          JAR identifier.
 String getName()
          The name of the JAR implementation.
 DrbNode open(DrbNode base_node)
          XML root node from an existing node.
 DrbNode open(URL uri)
          JAR root node matching a given URI.
 DrbNode open(URL uri, DrbNode base_node)
          XML node matching a given URI from an existing node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JarFactory

public JarFactory()
Method Detail

getIdentifier

public String getIdentifier()
JAR identifier. The indentifier of this implementation is "jar".

Specified by:
getIdentifier in interface DrbFactoryImpl
Returns:
"jar" string.

getName

public String getName()
The name of the JAR implementation. The explicit name of the implementation is "Java ARchive"

Specified by:
getName in interface DrbFactoryImpl
Returns:
"Java ARchive".

open

public DrbNode open(URL uri)
JAR root node matching a given URI. Not supported.

Specified by:
open in interface DrbFactoryImpl
Parameters:
uri - Not cosidered.
Returns:
Always null.

open

public DrbNode open(DrbNode base_node)
XML root node from an existing node. The provided base node shall exist and it shall be able to provide a FileInputStream implementation.

Specified by:
open in interface DrbFactoryImpl
Parameters:
base_node - The node to be considered in input.
Returns:
Drb_node

open

public DrbNode open(URL uri,
                    DrbNode base_node)
XML node matching a given URI from an existing node. This operation does not consider the uri parameter and delegate the node creation to the open(DrbNode baseNode) operation.

Specified by:
open in interface DrbFactoryImpl
Parameters:
uri - Not considered here.
base_node - The input node to be used as context or base.
Returns:
A root node or null if an error occured or if the implementation does not supports URI or the input node.

Data Request Broker - DRB API®
2-3-release

Copyright© 2001-2009 GAEL Consultant. All rights reserved. Use is subject to license terms .