de.opus5.servlet
Class DiskFile

java.lang.Object
  |
  +--de.opus5.servlet.UploadedFile
        |
        +--de.opus5.servlet.DiskFile

public class DiskFile
extends UploadedFile

Stores filedata on disk. Implements UploadedFile interface.

Version:
0.1.6
Author:
Frederik Dahlke, frederik.dahlke@web.de

Constructor Summary
DiskFile(java.lang.String fieldname, java.lang.String filename, java.lang.String tmpDir, java.lang.String uniqueFilename, boolean keep)
           
 
Method Summary
protected  void finalize()
           
 java.io.File getFile()
          returns the corresponding java.io.File object.
 java.io.InputStream getInputStream()
          Returns an InputStream for reading the filedata.
 java.io.OutputStream getOutputStream()
          Returns an OutputStream for writing the filedata
 
Methods inherited from class de.opus5.servlet.UploadedFile
getContentType, getFormParameterName, getName, getSize, setContentType, setSize
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiskFile

public DiskFile(java.lang.String fieldname,
                java.lang.String filename,
                java.lang.String tmpDir,
                java.lang.String uniqueFilename,
                boolean keep)
         throws java.io.IOException
Method Detail

getFile

public java.io.File getFile()
returns the corresponding java.io.File object.
Overrides:
getFile in class UploadedFile
Returns:
the file object.

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Returns an InputStream for reading the filedata.
Overrides:
getInputStream in class UploadedFile
Returns:
an InputStream

getOutputStream

public java.io.OutputStream getOutputStream()
                                     throws java.io.IOException
Returns an OutputStream for writing the filedata
Overrides:
getOutputStream in class UploadedFile
Tags copied from class: UploadedFile
Returns:
an OutputStream

finalize

protected void finalize()
Overrides:
finalize in class java.lang.Object