|
||||||||||
| 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.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 Partpublic int getSize()
getSize in class Partpublic File getFile()
public InputStream getInputStream()
throws IOException
getInputStream in class PartIOExceptionpublic String toString()
toString in class Objectpublic void dispose()
dispose in interface Disposabledispose in class Part
public void finalize()
throws Throwable
finalize in class ObjectThrowable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||