Data Request Broker
2-3-release

Package fr.gael.drb.impl.file

Implementation of DRB for the support of Files and Directories of the local File System.

See:
          Description

Class Summary
File File or Directory of a local file system.
FileFactory Factory of local file or directory nodes.
FileNode File or Directory of a local file system.
FileProvider File provider.
 

Package fr.gael.drb.impl.file Description

Implementation of DRB for the support of Files and Directories of the local File System.

This implementation wraps local and remote file systems. It builds the tree of nodes through files and directories. Each of these nodes has a name corresponding to the file or the directory name it has wrapped on the file system. Its attributes varies according to the file system and the operating system. It is useful to browse the local file system as a file manager. The file nodes have no specific attribute. The nodes of the File implementation are mutable nodes and can therefore be modified. It is thus possible to rename a File or a Directory, to change the overall content of the Files or to move the Files across the file system.

This implementation has been designed to maximize the access efficiency. For instance, as far as possible the data source is not accessed while browsing the logical tree of nodes without extracting any value on demand.

The fr.gael.drb.impl.file contains the FileFactory class which builds the tree structure. This implementation is based on the java.io package. It wraps data file as long as their path is described according to URL syntax defined by the W3C Uniform Resource Identifier . The name of a file node is simply the file name.

File node attributes Mandatory Type Description
directory YES boolean Identifies files which are directories
size long Specifies the number bytes in the file
readable boolean Specifies whether the file is readable or not
writable boolean Specifies whether the file is writable or not
hidden boolean Specifies whether the file is hidden or not.
modified dateTime Specifies the last modification time of the file.

Attributes of the nodes bound to this implementation


Data Request Broker - DRB API®
2-3-release

Copyright© 2001-2009 GAEL Consultant. All rights reserved. Use is subject to license terms .