public class DSpacePartOnDisk
extends org.apache.cocoon.servlet.multipart.Part
| Constructor and Description |
|---|
DSpacePartOnDisk(Map headers,
File file)
Constructor PartOnDisk
|
| Modifier and Type | Method and Description |
|---|---|
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
|
public String getFileName()
getFileName in class org.apache.cocoon.servlet.multipart.Partpublic int getSize()
getSize in class org.apache.cocoon.servlet.multipart.Partpublic File getFile()
public InputStream getInputStream() throws IOException
getInputStream in class org.apache.cocoon.servlet.multipart.PartIOExceptionpublic void dispose()
dispose in interface org.apache.avalon.framework.activity.Disposabledispose in class org.apache.cocoon.servlet.multipart.PartCopyright © 2017 DuraSpace. All Rights Reserved.