Data Request Broker
2-3-release

fr.gael.drb.impl.tar
Class TarFactory

java.lang.Object
  extended by fr.gael.drb.impl.tar.TarFactory
All Implemented Interfaces:
DrbFactoryImpl

public class TarFactory
extends Object
implements DrbFactoryImpl

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

TarFactory

public TarFactory()
Method Detail

getIdentifier

public String getIdentifier()
TAR identifier. The indentifier of this implementation is "tar".

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

getName

public String getName()
The name of the TAR implementation. The explicit name of the implementation is File tar"

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

open

public DrbNode open(URL uri)
TAR 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)
TAR 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 tar node

open

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