|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cocoon.servlet.multipart.Part org.apache.cocoon.servlet.multipart.PartInMemory
public class 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 Part
public int getSize()
getSize
in class Part
public InputStream getInputStream() throws IOException
getInputStream
in class Part
IOException
public void dispose()
dispose
in interface Disposable
dispose
in class Part
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |