org.ejtools.archive.io
Class DirectoryWriter

java.lang.Object
  |
  +--org.ejtools.archive.io.DirectoryWriter
All Implemented Interfaces:
Writer

public class DirectoryWriter
extends java.lang.Object
implements Writer

Writer implementation based on file-system directory. Each Archive will be output as a directory, and each Entry as a file.

Version:
$Revision: 1.2 $
Author:
Laurent Etiemble

Constructor Summary
DirectoryWriter(java.io.File basedir)
          Build the Writer on a directory.
 
Method Summary
protected  java.io.File getURI()
          Gets the stream attribute of the FileMapper object
protected  java.io.File popURI()
          Gets the stream attribute of the FileMapper object
protected  void pushURI(java.io.File uri)
          Description of the Method
 void visit(Archive archive)
          Visit an archive.
 void visit(Entry entry)
          Visit an entry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoryWriter

public DirectoryWriter(java.io.File basedir)
Build the Writer on a directory.

Parameters:
basedir - The root directory
Method Detail

visit

public void visit(Archive archive)
Visit an archive. Each Archive will be output as a directory.

Specified by:
visit in interface Writer
Parameters:
archive - The archive to visit

visit

public void visit(Entry entry)
Visit an entry. Each Entry will be output as a file.

Specified by:
visit in interface Writer
Parameters:
entry - The entry to visit

getURI

protected java.io.File getURI()
Gets the stream attribute of the FileMapper object

Returns:
The stream value

popURI

protected java.io.File popURI()
Gets the stream attribute of the FileMapper object

Returns:
Description of the Return Value

pushURI

protected void pushURI(java.io.File uri)
Description of the Method

Parameters:
uri - Description of the Parameter


Copyright © 2002-2003 EJTools Org.. All Rights Reserved.