cziegeler 2003/01/09 00:56:10 Modified: sourceresolve/src/java/org/apache/excalibur/source ModifiableSource.java Log: Extending ModifiableSource Revision Changes Path 1.3 +17 -1 jakarta-avalon-excalibur/sourceresolve/src/java/org/apache/excalibur/source/ModifiableSource.java Index: ModifiableSource.java =================================================================== RCS file: /home/cvs/jakarta-avalon-excalibur/sourceresolve/src/java/org/apache/excalibur/source/ModifiableSource.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- ModifiableSource.java 15 Dec 2002 12:54:59 -0000 1.2 +++ ModifiableSource.java 9 Jan 2003 08:56:10 -0000 1.3 @@ -73,9 +73,25 @@ OutputStream getOutputStream(); /** - * Delete the source + * Delete the source * @return true if the source could be deleted */ boolean delete(); + + /** + * Can the data sent to an <code>OutputStream</code> returned by + * [EMAIL PROTECTED] #getOutputStream()} be cancelled ? + * + * @return true if the stream can be cancelled + */ + boolean canCancel(OutputStream stream); + + /** + * Cancel the data sent to an <code>OutputStream</code> returned by + * [EMAIL PROTECTED] #getOutputStream()}. + * <p> + * After cancel, the stream should no more be used. + */ + void cancel(OutputStream stream) throws SourceException; }
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>