Packagecom.adobe.flascc.vfs
Classpublic class FileHandle
InheritanceFileHandle Inheritance Object

This class represents open files available to an flascc application. It should be used by implementations of the IKernel interface but not by end-user code.



Public Properties
 PropertyDefined By
  appending : Boolean
True if this file descriptor was opened with O_APPEND.
FileHandle
  backingStore : IBackingStore
[read-only] The BackingStore that owns this FDEntry.
FileHandle
  backingStoreRelativePath : String
[read-only] The relative path to the underlying file in the VFS.
FileHandle
  bytes : ByteArray
[read-only] If this file descriptor refers to a normal file this will contain the contents of the file.
FileHandle
  callback : ISpecialFile
[read-only] If this file descriptor refers to a special file this references an object implementing the ISpecialFile interface that will be used to handle read/write requests.
FileHandle
  isDirectory : Boolean
[read-only] True if this file descriptor referes to a directory.
FileHandle
  path : String
[read-only] The full path to the file referenced by this file descriptor
FileHandle
  position : uint
The position within the file that read/write operations will occur at.
FileHandle
  readable : Boolean
True if this file descriptor was opened with O_RDWR or if it was not opened as O_WRONLY.
FileHandle
  writeable : Boolean
True if this file descriptor was opened with O_WRONLY or O_RDWR.
FileHandle
Property Detail
appendingproperty
public var appending:Boolean

True if this file descriptor was opened with O_APPEND.

backingStoreproperty 
backingStore:IBackingStore  [read-only]

The BackingStore that owns this FDEntry.


Implementation
    public function get backingStore():IBackingStore
backingStoreRelativePathproperty 
backingStoreRelativePath:String  [read-only]

The relative path to the underlying file in the VFS.


Implementation
    public function get backingStoreRelativePath():String
bytesproperty 
bytes:ByteArray  [read-only]

If this file descriptor refers to a normal file this will contain the contents of the file.


Implementation
    public function get bytes():ByteArray
callbackproperty 
callback:ISpecialFile  [read-only]

If this file descriptor refers to a special file this references an object implementing the ISpecialFile interface that will be used to handle read/write requests.


Implementation
    public function get callback():ISpecialFile
isDirectoryproperty 
isDirectory:Boolean  [read-only]

True if this file descriptor referes to a directory.


Implementation
    public function get isDirectory():Boolean
pathproperty 
path:String  [read-only]

The full path to the file referenced by this file descriptor


Implementation
    public function get path():String
positionproperty 
public var position:uint

The position within the file that read/write operations will occur at.

readableproperty 
public var readable:Boolean

True if this file descriptor was opened with O_RDWR or if it was not opened as O_WRONLY.

writeableproperty 
public var writeable:Boolean

True if this file descriptor was opened with O_WRONLY or O_RDWR.