|
||||||||||
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.PartOnDisk
public class PartOnDisk
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 | |
---|---|
PartOnDisk(Map headers,
File file)
Constructor PartOnDisk |
Method Summary | |
---|---|
void |
dispose()
Delete the underlying file. |
void |
finalize()
Ensures the underlying file has been deleted |
File |
getFile()
Returns the file |
String |
getFileName()
Returns the file name |
InputStream |
getInputStream()
Returns a (ByteArray)InputStream containing the file data |
int |
getSize()
Returns the file size in bytes |
String |
toString()
Returns the filename |
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, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PartOnDisk(Map headers, File file)
headers
- file
- Method Detail |
---|
public String getFileName()
getFileName
in class Part
public int getSize()
getSize
in class Part
public File getFile()
public InputStream getInputStream() throws IOException
getInputStream
in class Part
IOException
public String toString()
toString
in class Object
public void dispose()
dispose
in interface Disposable
dispose
in class Part
public void finalize() throws Throwable
finalize
in class Object
Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |