org.apache.excalibur.source
Interface MoveableSource

All Superinterfaces:
Source
All Known Implementing Classes:
FileSource

public interface MoveableSource
extends Source

This class marks a source to be able to moved and copied to serveral other locations. This class should only be used if the implementations details should be hidden, otherwise the class SourceUtils can be used.

Version:
CVS $Id: MoveableSource.java,v 1.5 2004/02/28 11:47:26 cziegeler Exp $
Author:
Avalon Development Team

Method Summary
 void copyTo(Source destination)
          Copy the current source to a specified destination.
 void moveTo(Source destination)
          Move the current source to a specified destination.
 
Methods inherited from interface org.apache.excalibur.source.Source
exists, getContentLength, getInputStream, getLastModified, getMimeType, getScheme, getURI, getValidity, refresh
 

Method Detail

copyTo

public void copyTo(Source destination)
            throws SourceException
Copy the current source to a specified destination.

Parameters:
destination - Destination of the source.
Throws:
SourceException - If an exception occurs during the copy.

moveTo

public void moveTo(Source destination)
            throws SourceException
Move the current source to a specified destination.

Parameters:
destination - Destination of the source.
Throws:
SourceException - If an exception occurs during the move.


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