GridLab
Grid Application Toolkit

A simple API for Grid Applications
GAT

Menu



Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members  

cpi::FileInputStreamCpi Class Reference

Capability provider interface to the FileStream class. More...

Inheritance diagram for cpi::FileInputStreamCpi:

Inheritance graph
[legend]
Collaboration diagram for cpi::FileInputStreamCpi:

Collaboration graph
[legend]
List of all members.

Protected Methods

 FileInputStreamCpi (GATContext gatContext, Preferences preferences, File file) throws IOException
 This creates a FileStreamCpi attached to the physical file at the specified Location.


Detailed Description

Capability provider interface to the FileStream class.

Capability provider wishing to provide the functionality of the FileStream class must extend this class and implement all of the abstract methods in this class. Each abstract method in this class mirrors the corresponding method in this FileStream class and will be used to implement the corresponding method in the FileStream class at runtime.

Definition at line 20 of file FileInputStreamCpi.java.


Constructor & Destructor Documentation

cpi::FileInputStreamCpi::FileInputStreamCpi GATContext    gatContext,
Preferences    preferences,
File    file
throws IOException [inline, protected]
 

This creates a FileStreamCpi attached to the physical file at the specified Location.

The file may be opened in several modes:

  • FileStream.read --- Open file for reading. The stream is positioned at the beginning of the file.
  • FileStream.write --- Truncate file to zero length or create file for writing. The stream is positioned at the beginning of the file.
  • FileStream.readwrite --- Open for reading and writing. The stream is positioned at the beginning of the file.
  • FileStream.append --- Open for appending (writing at end of file). The file is created if it does not exist. The stream is positioned at the end of the file.
Parameters:
gatContext  The GATContext used to broker resources
location  The Location of the file to open.
mode  The mode to open it --- read, write, readwrite, or append, member variables of the FileStream class

Definition at line 45 of file FileInputStreamCpi.java.

References io::FileInputStream::file, io::FileInputStream::gatContext, and io::FileInputStream::preferences.


The documentation for this class was generated from the following file: