cleanup / abuse system fix / prepping for a release
[mir.git] / source / mir / session / UploadedFile.java
index 89e54bd..58eac87 100755 (executable)
@@ -31,6 +31,7 @@ package mir.session;
 
 import java.io.File;
 import java.io.InputStream;
+import java.io.OutputStream;
 
 public interface UploadedFile {
   /**
@@ -39,6 +40,11 @@ public interface UploadedFile {
   public void writeToFile(File aFile) throws SessionExc, SessionFailure;
 
   /**
+   * Writes the uploaded content to a file
+   */
+  public void writeToStream(OutputStream aStream) throws SessionExc, SessionFailure;
+
+  /**
    * Creates an <code>InputStream</code> to access the uploaded content  
    */
   public InputStream getInputStream() throws SessionExc, SessionFailure;