|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.cocoon.components.request.multipart.FilePart | +--org.apache.cocoon.components.request.multipart.FilePartFile
This class represents a file part parsed from a http post stream.
Field Summary |
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 |
protected FilePartFile(java.util.Map headers, java.io.File file)
headers
- file
- Method Detail |
public java.lang.String getFileName()
getFileName
in class FilePart
public java.io.File getFile()
public java.io.InputStream getInputStream() throws java.lang.Exception
getInputStream
in class FilePart
java.lang.Exception
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |