|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface FileDelegate
This defines the delegate of a file entity.
| Method Summary | |
|---|---|
void |
delete()
Delete the file. |
long |
getDataSize()
|
long |
getSize()
|
ReadableByteChannel |
openChannelForRead()
|
WritableByteChannel |
openChannelForWrite(boolean append)
|
RandomAccess |
openForRandomAccess(RandomAccessMode mode)
|
InputStream |
openForRead()
|
OutputStream |
openForWrite(boolean append)
|
void |
replaceContents(FileDelegate fd)
Replace the contents of this file with the contents of the supplied file. |
| Methods inherited from interface org.entityfs.impl.EntityDelegate |
|---|
canRead, canWrite, copy, copyAttributes, exists, getDelegateOfTypeOrNull, getEntityAdapter, getFileSystem, getLastModified, getName, getOwner, init, isReadOnly, rename, setLastModified, setOwner |
| Method Detail |
|---|
OutputStream openForWrite(boolean append)
WritableByteChannel openChannelForWrite(boolean append)
InputStream openForRead()
ReadableByteChannel openChannelForRead()
RandomAccess openForRandomAccess(RandomAccessMode mode)
long getSize()
long getDataSize()
void delete()
throws FileSystemException
FileSystemException - If the file cannot be deleted.void replaceContents(FileDelegate fd)
fd - The file delegate with the contents that this file's contents
should be replaced with. fd is not guaranteed to be in the
same file system as this file.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||