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, getPathjava.io.InputStream getContents()
throws StreamException
InputStream object on the file content.
The stream must be closed by the caller.StreamExceptionvoid setContents(java.io.InputStream source)
throws StreamException
source - the contentStreamExceptionjava.io.OutputStream getOutputStream()
throws StreamException
OutputStream to write into the file.StreamExceptionIAbstractFile.PreferredWriteMode getPreferredWriteMode()
long getModificationStamp()