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.2.4 2002/10/03 04:18:23 vgritsenko Exp $
Author:
Jeroen ter Voorde

Fields inherited from class org.apache.cocoon.components.request.multipart.FilePart
headers
 
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
 java.lang.String toString()
          Returns the filename
 
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, 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

getFile

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

getInputStream

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

toString

public java.lang.String toString()
Returns the filename
Overrides:
toString in class java.lang.Object


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