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.3 2003/04/04 16:36:51 sylvain Exp $
Author:
Stephan Michels

Method Summary
 void copyTo(Source destination)
          Copy the current source to a specified destination.
 void moveTo(Source source)
          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 source)
            throws SourceException
Move the current source to a specified destination.

Throws:
SourceException - If an exception occurs during the move.


Copyright © 2000-2003 Apache Avalon Project. All Rights Reserved.