org.apache.excalibur.source
Interface ModifiableTraversableSource

All Superinterfaces:
ModifiableSource, Source, TraversableSource
All Known Implementing Classes:
FileSource

public interface ModifiableTraversableSource
extends ModifiableSource, TraversableSource

A modifiable traversable source. This adds to ModifiableSource the ability to create a directory.

Version:
CVS $Revision: 1.4 $ $Date: 2004/02/28 11:47:26 $
Author:
Avalon Development Team

Method Summary
 void makeCollection()
          If it doesn't already exist, ensure this source is traversable (equivalent to File.mkdirs())
 
Methods inherited from interface org.apache.excalibur.source.ModifiableSource
canCancel, cancel, delete, getOutputStream
 
Methods inherited from interface org.apache.excalibur.source.Source
exists, getContentLength, getInputStream, getLastModified, getMimeType, getScheme, getURI, getValidity, refresh
 
Methods inherited from interface org.apache.excalibur.source.TraversableSource
getChild, getChildren, getName, getParent, isCollection
 

Method Detail

makeCollection

public void makeCollection()
                    throws SourceException
If it doesn't already exist, ensure this source is traversable (equivalent to File.mkdirs())

If the source already exists, this method does nothing if it's already traversable, and fails otherwise.

Throws:
SourceException


Copyright © 1997-2005 The Apache Software Foundation. All Rights Reserved.