org.apache.cocoon.components.request.multipart
Class FilePartFile

java.lang.Object
  |
  +--org.apache.cocoon.components.request.multipart.FilePart
        |
        +--org.apache.cocoon.components.request.multipart.FilePartFile

public class FilePartFile
extends FilePart

This class represents a file part parsed from a http post stream.

Version:
CVS $Id: FilePartFile.java,v 1.1 2002/02/27 20:21:22 dims Exp $
Author:
Jeroen ter Voorde

Constructor Summary
protected FilePartFile(java.util.Map headers, java.io.File file)
          Constructor FilePartFile
 
Method Summary
 java.io.File getFile()
          Returns the file
 java.lang.String getFileName()
          Returns the filename
 java.io.InputStream getInputStream()
          Returns a (ByteArray)InputStream containing the file data
 
Methods inherited from class org.apache.cocoon.components.request.multipart.FilePart
getFilePath, getHeaders, getMimeType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilePartFile

protected FilePartFile(java.util.Map headers,
                       java.io.File file)
Constructor FilePartFile
Parameters:
headers -  
file -  
Method Detail

getFileName

public java.lang.String getFileName()
Returns the filename
Overrides:
getFileName in class FilePart
Returns:
 

getFile

public java.io.File getFile()
Returns the file
Returns:
 

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.lang.Exception
Returns a (ByteArray)InputStream containing the file data
Overrides:
getInputStream in class FilePart
Returns:
 
Throws:
java.lang.Exception -  


Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.