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  

RandomAccessFileCpi.java

Go to the documentation of this file.
00001 package org.gridlab.gat.io.cpi;
00002 
00003 import java.io.FileNotFoundException;
00004 
00005 import org.gridlab.gat.GATContext;
00006 import org.gridlab.gat.Preferences;
00007 import org.gridlab.gat.io.File;
00008 import org.gridlab.gat.io.RandomAccessFile;
00009 
00010 /**
00011  * Capability provider interface to the File class.
00012  * <p>
00013  * Capability provider wishing to provide the functionality of the File class
00014  * must extend this class and implement all of the abstract methods in this
00015  * class. Each abstract method in this class mirrors the corresponding method in
00016  * this File class and will be used to implement the corresponding method in the
00017  * File class at runtime.
00018  */
00019 public abstract class RandomAccessFileCpi extends RandomAccessFile {
00020 
00021     /**
00022      * Constructs a FileCpi instance which corresponds to the physical file
00023      * identified by the passed Location and whose access rights are determined
00024      * by the passed GATContext.
00025      * 
00026      * @param location
00027      *            A Location which represents the URI corresponding to the
00028      *            physical file.
00029      * @param gatContext
00030      *            A GATContext which is used to determine the access rights for
00031      *            this FileCpi.
00032      * @throws java.lang.Exception
00033      *             Thrown upon creation problems
00034      */
00035     protected RandomAccessFileCpi(GATContext gatContext, Preferences preferences,
00036             File file, String mode) throws FileNotFoundException {
00037         super(gatContext, preferences, file, mode);
00038     }
00039 }