public interface IAbstractFile extends IAbstractResource
Modifier and Type | Interface and Description |
---|---|
static class |
IAbstractFile.PreferredWriteMode |
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
getContents()
Returns an
InputStream object on the file content. |
long |
getModificationStamp()
Returns the last modification timestamp
|
java.io.OutputStream |
getOutputStream()
Returns an
OutputStream to write into the file. |
IAbstractFile.PreferredWriteMode |
getPreferredWriteMode()
Returns the preferred mode to write into the file.
|
void |
setContents(java.io.InputStream source)
Sets the content of the file.
|
delete, exists, getName, getOsLocation, getParentFolder, getPath
java.io.InputStream getContents() throws StreamException
InputStream
object on the file content.
The stream must be closed by the caller.StreamException
void setContents(java.io.InputStream source) throws StreamException
source
- the contentStreamException
java.io.OutputStream getOutputStream() throws StreamException
OutputStream
to write into the file.StreamException
IAbstractFile.PreferredWriteMode getPreferredWriteMode()
long getModificationStamp()