public class DSpacePartOnDisk
extends org.apache.cocoon.servlet.multipart.Part
| Constructor and Description |
|---|
DSpacePartOnDisk(java.util.Map headers,
java.io.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
|
java.io.File |
getFile()
Returns the file
|
java.lang.String |
getFileName()
Returns the file name
|
java.io.InputStream |
getInputStream()
Returns a (ByteArray)InputStream containing the file data
|
int |
getSize()
Returns the file size in bytes
|
java.lang.String |
toString()
Returns the filename
|
public DSpacePartOnDisk(java.util.Map headers,
java.io.File file)
headers - file - public java.lang.String getFileName()
getFileName in class org.apache.cocoon.servlet.multipart.Partpublic int getSize()
getSize in class org.apache.cocoon.servlet.multipart.Partpublic java.io.File getFile()
public java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in class org.apache.cocoon.servlet.multipart.Partjava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic void dispose()
dispose in interface org.apache.avalon.framework.activity.Disposabledispose in class org.apache.cocoon.servlet.multipart.Partpublic void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.ThrowableCopyright © 2018 DuraSpace. All Rights Reserved.