You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by cz...@apache.org on 2003/01/09 09:56:11 UTC

cvs commit: jakarta-avalon-excalibur/sourceresolve/src/java/org/apache/excalibur/source ModifiableSource.java

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
  +     * {@link #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
  +     * {@link #getOutputStream()}.
  +     * <p>
  +     * After cancel, the stream should no more be used.
  +     */
  +    void cancel(OutputStream stream) throws SourceException;
   	
   }
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>