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

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

public class FilePartArray
extends FilePart

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

Version:
CVS $Id: FilePartArray.java,v 1.1.2.3 2002/09/17 15:54:04 vgritsenko Exp $
Author:
Jeroen ter Voorde

Field Summary
 
Fields inherited from class org.apache.cocoon.components.request.multipart.FilePart
headers
 
Constructor Summary
protected FilePartArray(java.util.Map headers, java.io.InputStream in)
          Constructor FilePartArray
 
Method Summary
 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

FilePartArray

protected FilePartArray(java.util.Map headers,
                        java.io.InputStream in)
Constructor FilePartArray

Parameters:
headers -
in -
Method Detail

getFileName

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

Specified by:
getFileName in class FilePart

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.lang.Exception
Returns a (ByteArray)InputStream containing the file data

Specified by:
getInputStream in class FilePart
Throws:
java.lang.Exception


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