|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.cocoon.servlet.multipart.Part
org.apache.cocoon.servlet.multipart.PartInMemory
This class represents a file part parsed from a http post stream.
| Field Summary |
| Fields inherited from class org.apache.cocoon.servlet.multipart.Part |
headers |
| Constructor Summary | |
PartInMemory(Map headers,
byte[] bytes)
Constructor PartInMemory |
|
| Method Summary | |
void |
dispose()
Clean the byte array content buffer holding part data |
String |
getFileName()
Returns the filename |
InputStream |
getInputStream()
Returns a (ByteArray)InputStream containing the file data |
int |
getSize()
Returns the filesize in bytes |
| Methods inherited from class org.apache.cocoon.servlet.multipart.Part |
copyToFile, copyToSource, disposeWithRequest, getHeaders, getMimeType, getUploadName, isRejected, setDisposeWithRequest |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PartInMemory(Map headers,
byte[] bytes)
| Method Detail |
public String getFileName()
getFileName in class Partpublic int getSize()
getSize in class Part
public InputStream getInputStream()
throws IOException
getInputStream in class PartIOExceptionpublic void dispose()
dispose in interface Disposabledispose in class Part
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||