org.apache.cocoon.components.request.multipart
Class FilePart
java.lang.Object
|
+--org.apache.cocoon.components.request.multipart.FilePart
- Direct Known Subclasses:
- FilePartArray, FilePartFile
- public abstract class FilePart
- extends java.lang.Object
This (abstract) class represents a file part parsed from a http post stream.
It is subclassed by FilePartFile (which is a file allready written to disk) and
FilePartArray (which is a file in memory)
- Version:
- CVS $Id: FilePart.java,v 1.1 2002/02/27 20:21:22 dims Exp $
- Author:
- Jeroen ter Voorde
Method Summary |
abstract java.lang.String |
getFileName()
Returns the filename |
java.lang.String |
getFilePath()
Returns the filepath |
java.util.Map |
getHeaders()
Returns the part headers |
abstract java.io.InputStream |
getInputStream()
Returns an InputStream containing the file data |
java.lang.String |
getMimeType()
Returns the mime type (or null if unknown) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FilePart
public FilePart()
getHeaders
public java.util.Map getHeaders()
- Returns the part headers
- Returns:
-
getFileName
public abstract java.lang.String getFileName()
- Returns the filename
- Returns:
-
getFilePath
public java.lang.String getFilePath()
- Returns the filepath
- Returns:
-
getMimeType
public java.lang.String getMimeType()
- Returns the mime type (or null if unknown)
- Returns:
-
getInputStream
public abstract java.io.InputStream getInputStream()
throws java.lang.Exception
- Returns an InputStream containing the file data
- Returns:
-
- Throws:
java.lang.Exception
-
Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.