org.entityfs
Interface EFile

All Superinterfaces:
Comparable<EntityView>, Deletable, Entity, EntityView, Lockable, Named, NamedReadableFile, Observable, RandomlyAccessibleFile, ReadableFile, ReadLockable, ReadWritableFile, ReadWriteLockable, WritableFile, WriteLockable
All Known Subinterfaces:
EFileImplementation
All Known Implementing Classes:
FileImpl

public interface EFile
extends Entity, ReadWritableFile, NamedReadableFile

This is an interface for a file implementation. A file supports being read and written to.

Physical file system-backed file system implementations support the FCFileBacked capability. It allows the client to open FileInputStream:s and FileOutputStream:s on the file, and use it as an RandomAccessFile.

In addition to the methods defined in this interface, the class Files contains static utility methods for working with files.

A file is Observable for updates. It can send the following events:

Since:
1.0
Author:
Karl Gustafsson
See Also:
Entities, Files
In_jar:
entityfs-core

Method Summary
 
Methods inherited from interface org.entityfs.Entity
hasExecuteAccess, hasReadAccess, hasWriteAccess
 
Methods inherited from interface org.entityfs.EntityView
canRead, canWrite, copy, copy, copyAttributes, createLock, disconnect, getCapability, getFileSystem, getLastModified, getParent, getType, getViewed, getViewedEntity, isConnected, isRootDirectory, isValid, lock, rename, setLastModified, supportsCapability, touch
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface org.entityfs.event.Observable
addObserver, countObservers, deleteObserver, deleteObservers
 
Methods inherited from interface org.entityfs.Named
getName
 
Methods inherited from interface org.entityfs.Deletable
delete, isDeleted
 
Methods inherited from interface org.entityfs.ReadWritableFile
copy, copy, getSizeNoLocking, replaceContents
 
Methods inherited from interface org.entityfs.WritableFile
openChannelForAppend, openChannelForWrite, openForAppend, openForWrite
 
Methods inherited from interface org.entityfs.RandomlyAccessibleFile
openForRandomAccess
 
Methods inherited from interface org.entityfs.ReadableFile
getDataSize, getSize, openChannelForRead, openForRead