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.2.2 2002/07/15 14:10:35 cziegeler Exp $
Author:
Jeroen ter Voorde

Field Summary
protected  java.util.Map headers
          Field headers
 
Constructor Summary
protected FilePart(java.util.Map headers)
           
 
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
 

Field Detail

headers

protected java.util.Map headers
Field headers
Constructor Detail

FilePart

protected FilePart(java.util.Map headers)
Method Detail

getHeaders

public java.util.Map getHeaders()
Returns the part headers

getFileName

public abstract java.lang.String getFileName()
Returns the filename

getFilePath

public java.lang.String getFilePath()
Returns the filepath

getMimeType

public java.lang.String getMimeType()
Returns the mime type (or null if unknown)

getInputStream

public abstract java.io.InputStream getInputStream()
                                            throws java.lang.Exception
Returns an InputStream containing the file data
Throws:
java.lang.Exception -  


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