Data Request Broker
2-3-release

fr.gael.drb.impl.zip
Class ZipFactory

java.lang.Object
  extended by fr.gael.drb.impl.zip.ZipFactory
All Implemented Interfaces:
DrbFactoryImpl

public class ZipFactory
extends Object
implements DrbFactoryImpl

Factory of ZIP nodes. This class implements the DrbFactoryImpl interface to create drb.impl.zip.ZipNode nodes that handles ZIP 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
ZipFactory()
           
 
Method Summary
 String getIdentifier()
          ZIP identifier.
 String getName()
          The name of the ZIP implementation.
 DrbNode open(DrbNode base_node)
          ZIP root node from an existing node.
 DrbNode open(URL uri)
          ZIP root node matching a given URI.
 DrbNode open(URL uri, DrbNode base_node)
          ZIP 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

ZipFactory

public ZipFactory()
Method Detail

getIdentifier

public String getIdentifier()
ZIP identifier. The indentifier of this implementation is "zip".

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

getName

public String getName()
The name of the ZIP implementation. The explicit name of the implementation is File zip"

Specified by:
getName in interface DrbFactoryImpl
Returns:
"File zip".

open

public DrbNode open(URL uri)
ZIP 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)
ZIP 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:
DrbNode the zip node

open

public DrbNode open(URL uri,
                    DrbNode base_node)
ZIP 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 .