|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gridlab.gat.GAT
public class GAT
The GAT class is used to create GAT objects.
Constructor Summary | |
---|---|
GAT()
|
Method Summary | |
---|---|
static AdvertService |
createAdvertService()
Create an AdvertService object using the default
GATContext . |
static AdvertService |
createAdvertService(GATContext gatContext)
Create an AdvertService object using the passed
GATContext . |
static AdvertService |
createAdvertService(GATContext gatContext,
Preferences preferences)
Create an AdvertService object using the passed
GATContext and additional Preferences . |
static AdvertService |
createAdvertService(Preferences preferences)
Create an AdvertService object using the default
GATContext and additional Preferences . |
static Endpoint |
createEndpoint()
Create an Endpoint for a Pipe using the default
GATContext . |
static Endpoint |
createEndpoint(GATContext gatContext)
Create an Endpoint for a Pipe using the passed
GATContext . |
static Endpoint |
createEndpoint(GATContext gatContext,
Preferences preferences)
Create an Endpoint for a Pipe using the default
GATContext and additional Preferences . |
static Endpoint |
createEndpoint(Preferences preferences)
Create an Endpoint for a Pipe using the default
GATContext and additional Preferences . |
static File |
createFile(GATContext gatContext,
Preferences preferences,
String location)
Constructs a File instance which corresponds to the physical file
identified by the passed URI (in String format) and whose access
rights are determined by the passed GATContext . |
static File |
createFile(GATContext gatContext,
Preferences preferences,
URI location)
Constructs a File instance which corresponds to the physical file
identified by the passed URI and whose access rights are
determined by the passed GATContext . |
static File |
createFile(GATContext gatContext,
String location)
Constructs a File instance which corresponds to the physical file
identified by the passed URI (in String format) and whose access
rights are determined by the passed GATContext . |
static File |
createFile(GATContext gatContext,
URI location)
Constructs a File instance which corresponds to the physical file
identified by the passed URI and whose access rights are
determined by the passed GATContext . |
static File |
createFile(Preferences preferences,
String location)
Constructs a File instance which corresponds to the physical file
identified by the passed URI and whose access rights are
determined by the default GATContext with additional
Preferences . |
static File |
createFile(Preferences preferences,
URI location)
Constructs a File instance which corresponds to the physical file
identified by the passed URI and whose access rights are
determined by the default GATContext with additional
Preferences . |
static File |
createFile(String location)
Constructs a File instance which corresponds to the physical file
identified by the passed URI, (in String format) and whose access
rights are determined by the default GATContext . |
static File |
createFile(URI location)
Constructs a File instance which corresponds to the physical file
identified by the passed URI and whose access rights are
determined by the default GATContext . |
static FileInputStream |
createFileInputStream(File file)
Constructs a FileInputStream instance which corresponds to the
physical file identified by the passed File and whose access
rights are determined by the GATContext of this File . |
static FileInputStream |
createFileInputStream(GATContext gatContext,
File file)
Constructs a FileInputStream instance which corresponds to the
physical file identified by the passed File and whose access
rights are determined by the passed GATContext . |
static FileInputStream |
createFileInputStream(GATContext gatContext,
Preferences preferences,
File file)
Constructs a FileInputStream instance which corresponds to the
physical file identified by the passed file and whose access rights are
determined by the passed GATContext with additional
Preferences . |
static FileInputStream |
createFileInputStream(GATContext gatContext,
Preferences preferences,
String location)
Constructs a FileInputStream instance which corresponds to the
physical file identified by the passed URI (in String format) and
whose access rights are determined by the passed GATContext with
additional Preferences . |
static FileInputStream |
createFileInputStream(GATContext gatContext,
Preferences preferences,
URI location)
Constructs a FileInputStream instance which corresponds to the
physical file identified by the passed URI and whose access
rights are determined by the passed GATContext with additional
Preferences . |
static FileInputStream |
createFileInputStream(GATContext gatContext,
String location)
Constructs a FileInputStream instance which corresponds to the
physical file identified by the passed URI (in String format) and
whose access rights are determined by the passed GATContext . |
static FileInputStream |
createFileInputStream(GATContext gatContext,
URI location)
Constructs a FileInputStream instance which corresponds to the
physical file identified by the passed URI and whose access
rights are determined by the passed GATContext . |
static FileInputStream |
createFileInputStream(Preferences preferences,
File file)
Constructs a FileInputStream instance which corresponds to the
physical file identified by the passed URI and whose access
rights are determined by the GATContext of this File and
additional Preferences . |
static FileInputStream |
createFileInputStream(Preferences preferences,
String location)
Constructs a FileInputStream instance which corresponds to the
physical file identified by the passed URI (in String format) and
whose access rights are determined by the default GATContext with
additional Preferences . |
static FileInputStream |
createFileInputStream(Preferences preferences,
URI location)
Constructs a FileInputStream instance which corresponds to the
physical file identified by the passed URI and whose access
rights are determined by the default GATContext with additional
Preferences . |
static FileInputStream |
createFileInputStream(String location)
Constructs a FileInputStream instance which corresponds to the
physical file identified by the passed URI (in String format) and
whose access rights are determined by the default GATContext . |
static FileInputStream |
createFileInputStream(URI location)
Constructs a FileInputStream instance which corresponds to the
physical file identified by the passed URI and whose access
rights are determined by the default GATContext . |
static FileOutputStream |
createFileOutputStream(File file)
Constructs a FileOutputStream instance which corresponds to the
physical file identified by the passed File and whose access
rights are determined by the GATContext of this File . |
static FileOutputStream |
createFileOutputStream(File file,
boolean append)
Constructs a FileOutputStream instance which corresponds to the
physical file identified by the passed File and whose access
rights are determined by the GATContext of this File . |
static FileOutputStream |
createFileOutputStream(GATContext gatContext,
File file)
Constructs a FileOutputStream instance which corresponds to the
physical file identified by the passed File and whose access
rights are determined by the passed GATContext . |
static FileOutputStream |
createFileOutputStream(GATContext gatContext,
File file,
boolean append)
Constructs a FileOutputStream instance which corresponds to the
physical file identified by the passed File and whose access
rights are determined by the passed GATContext . |
static FileOutputStream |
createFileOutputStream(GATContext gatContext,
Preferences preferences,
File file)
Constructs a FileOutputStream instance which corresponds to the
physical file identified by the passed File and whose access
rights are determined by the passed GATContext and additional
Preferences . |
static FileOutputStream |
createFileOutputStream(GATContext gatContext,
Preferences preferences,
File file,
boolean append)
Constructs a FileOutputStream instance which corresponds to the
physical file identified by the passed file and whose access rights are
determined by the passed GATContext and additional
Preferences . |
static FileOutputStream |
createFileOutputStream(GATContext gatContext,
Preferences preferences,
String location)
Constructs a FileOutputStream instance which corresponds to the
physical file identified by the passed URI (in String format) and
whose access rights are determined by the passed GATContext and
additional Preferences . |
static FileOutputStream |
createFileOutputStream(GATContext gatContext,
Preferences preferences,
String location,
boolean append)
Constructs a FileOutputStream instance which corresponds to the
physical file identified by the passed URI (in String format) and
whose access rights are determined by the passed GATContext and
additional Preferences . |
static FileOutputStream |
createFileOutputStream(GATContext gatContext,
Preferences preferences,
URI location)
Constructs a FileOutputStream instance which corresponds to the
physical file identified by the passed URI and whose access
rights are determined by the passed GATContext . |
static FileOutputStream |
createFileOutputStream(GATContext gatContext,
Preferences preferences,
URI location,
boolean append)
Constructs a FileOutputStream instance which corresponds to the
physical file identified by the passed URI and whose access
rights are determined by the passed GATContext and additional
Preferences . |
static FileOutputStream |
createFileOutputStream(GATContext gatContext,
String location)
Constructs a FileOutputStream instance which corresponds to the
physical file identified by the passed URI (in String format) and
whose access rights are determined by the passed GATContext . |
static FileOutputStream |
createFileOutputStream(GATContext gatContext,
String location,
boolean append)
Constructs a FileOutputStream instance which corresponds to the
physical file identified by the passed URI (in String format) and
whose access rights are determined by the passed GATContext . |
static FileOutputStream |
createFileOutputStream(GATContext gatContext,
URI location)
Constructs a FileOutputStream instance which corresponds to the
physical file identified by the passed URI and whose access
rights are determined by the passed GATContext . |
static FileOutputStream |
createFileOutputStream(GATContext gatContext,
URI location,
boolean append)
Constructs a FileOutputStream instance which corresponds to the
physical file identified by the passed URI and whose access
rights are determined by the passed GATContext . |
static FileOutputStream |
createFileOutputStream(Preferences preferences,
File file)
Constructs a FileOutputStream instance which corresponds to the
physical file identified by the passed File and whose access
rights are determined by the GATContext of this File and
additional Preferences . |
static FileOutputStream |
createFileOutputStream(Preferences preferences,
File file,
boolean append)
Constructs a FileOutputStream instance which corresponds to the
physical file identified by the passed File and whose access
rights are determined by the GATContext of this File and
additional Preferences . |
static FileOutputStream |
createFileOutputStream(Preferences preferences,
String location)
Constructs a FileOutputStream instance which corresponds to the
physical file identified by the passed URI (in String format) and
whose access rights are determined by the default GATContext and
additional Preferences . |
static FileOutputStream |
createFileOutputStream(Preferences preferences,
String location,
boolean append)
Constructs a FileOutputStream instance which corresponds to the
physical file identified by the passed URI (in String format) and
whose access rights are determined by the passed GATContext and
additional Preferences . |
static FileOutputStream |
createFileOutputStream(Preferences preferences,
URI location)
Constructs a FileOutputStream instance which corresponds to the
physical file identified by the passed URI and whose access
rights are determined by the default GATContext and additional
Preferences . |
static FileOutputStream |
createFileOutputStream(Preferences preferences,
URI location,
boolean append)
Constructs a FileOutputStream instance which corresponds to the
physical file identified by the passed URI and whose access
rights are determined by the default GATContext and additional
Preferences . |
static FileOutputStream |
createFileOutputStream(String location)
Constructs a FileOutputStream instance which corresponds to the
physical file identified by the passed URI (in String format) and
whose access rights are determined by the default GATContext . |
static FileOutputStream |
createFileOutputStream(String location,
boolean append)
Constructs a FileOutputStream instance which corresponds to the
physical file identified by the passed URI (in String format) and
whose access rights are determined by the passed GATContext . |
static FileOutputStream |
createFileOutputStream(URI location)
Constructs a FileOutputStream instance which corresponds to the
physical file identified by the passed URI and whose access
rights are determined by the default GATContext . |
static FileOutputStream |
createFileOutputStream(URI location,
boolean append)
Constructs a FileOutputStream instance which corresponds to the
physical file identified by the passed URI and whose access
rights are determined by the default GATContext . |
static LogicalFile |
createLogicalFile(GATContext gatContext,
Preferences preferences,
String name,
int mode)
This method creates a LogicalFile corresponding to the passed URI
(in String format) instance using a specified GATContext
with additional Preferences . |
static LogicalFile |
createLogicalFile(GATContext gatContext,
String name,
int mode)
This method creates a LogicalFile corresponding to the passed URI
(in String format) instance using a specified GATContext . |
static LogicalFile |
createLogicalFile(Preferences preferences,
String name,
int mode)
This method creates a LogicalFile corresponding to the passed URI
(in String format) instance using the default GATContext
with additional Preferences . |
static LogicalFile |
createLogicalFile(String name,
int mode)
This method creates a LogicalFile corresponding to the passed URI
(in String format) instance using the default GATContext . |
static Monitorable |
createMonitorable()
Create a (default) Monitorable object using the default
GATContext |
static Monitorable |
createMonitorable(GATContext gatContext)
Create a (default) Monitorable object using the passed
GATContext . |
static Monitorable |
createMonitorable(GATContext gatContext,
Preferences preferences)
Create a (default) Monitorable object using the passed
GATContext and additional Preferences . |
static Monitorable |
createMonitorable(Preferences preferences)
Create a (default) Monitorable object using the default
GATContext and additional Preferences . |
static RandomAccessFile |
createRandomAccessFile(GATContext gatContext,
Preferences preferences,
String location,
String mode)
Constructs a RandomAccessFile instance which corresponds to the
physical file identified by the passed URI (in String format) and
whose access rights are determined by the passed GATContext and
additional Preferences . |
static RandomAccessFile |
createRandomAccessFile(GATContext gatContext,
Preferences preferences,
URI location,
String mode)
Constructs a RandomAccessFile instance which corresponds to the
physical file identified by the passed URI and whose access
rights are determined by the passed GATContext and additional
Preferences . |
static RandomAccessFile |
createRandomAccessFile(GATContext gatContext,
String location,
String mode)
Constructs a RandomAccessFile instance which corresponds to the
physical file identified by the passed URI (in String format) and
whose access rights are determined by the passed GATContext . |
static RandomAccessFile |
createRandomAccessFile(GATContext gatContext,
URI location,
String mode)
Constructs a RandomAccessFile instance which corresponds to the
physical file identified by the passed URI and whose access
rights are determined by the passed GATContext . |
static RandomAccessFile |
createRandomAccessFile(Preferences preferences,
String location,
String mode)
Constructs a RandomAccessFile instance which corresponds to the
physical file identified by the passed URI (in String format) and
whose access rights are determined by the default GATContext and
additional Preferences . |
static RandomAccessFile |
createRandomAccessFile(Preferences preferences,
URI location,
String mode)
Constructs a RandomAccessFile instance which corresponds to the
physical file identified by the passed URI and whose access
rights are determined by the default GATContext and additional
Preferences . |
static RandomAccessFile |
createRandomAccessFile(String location,
String mode)
Constructs a RandomAccessFile instance which corresponds to the
physical file identified by the passed URI (in String format) and
whose access rights are determined by the default GATContext . |
static RandomAccessFile |
createRandomAccessFile(URI location,
String mode)
Constructs a RandomAccessFile instance which corresponds to the
physical file identified by the passed URI and whose access
rights are determined by the default GATContext . |
static ResourceBroker |
createResourceBroker(GATContext gatContext,
Preferences preferences,
URI brokerURI)
This method constructs a ResourceBroker instance corresponding to
the passed GATContext and additional Preferences . |
static ResourceBroker |
createResourceBroker(GATContext gatContext,
URI brokerURI)
This method constructs a ResourceBroker instance corresponding to
the passed GATContext . |
static ResourceBroker |
createResourceBroker(Preferences preferences,
URI brokerURI)
This method constructs a ResourceBroker instance corresponding to
the default GATContext and additional Preferences . |
static ResourceBroker |
createResourceBroker(URI brokerURI)
This method constructs a ResourceBroker instance corresponding to
the default GATContext . |
static SteeringManager |
createSteeringManager()
Create a SteeringManager object using the default
GATContext . |
static SteeringManager |
createSteeringManager(GATContext gatContext)
Create a SteeringManager object using the passed
GATContext . |
static SteeringManager |
createSteeringManager(GATContext gatContext,
Preferences preferences)
Create a SteeringManager object using the passed
GATContext and additional Preferences . |
static SteeringManager |
createSteeringManager(Preferences preferences)
Create a SteeringManager object using the default
GATContext and additional Preferences . |
static void |
end()
This method shuts down the GAT properly and will stop all threads of external libraries used by the GAT. |
static AdaptorInfo[] |
getAdaptorInfos(String type)
Returns for a given type the information of the adaptors implementing this type. |
static String[] |
getAdaptorTypes()
Returns all the adaptor types provided by the current set of adaptors in the 'gat.adaptor.path'. |
static GATContext |
getDefaultGATContext()
Gets the default GATContext . |
static void |
setDefaultGATContext(GATContext context)
Sets the default GATContext to the new value. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GAT()
Method Detail |
---|
public static File createFile(URI location) throws GATObjectCreationException
File
instance which corresponds to the physical file
identified by the passed URI
and whose access rights are
determined by the default GATContext
.
location
- A URI
which represents the URI corresponding to
the physical file.
File
object
GATObjectCreationException
- Thrown upon creation problemspublic static File createFile(String location) throws GATObjectCreationException
File
instance which corresponds to the physical file
identified by the passed URI, (in String
format) and whose access
rights are determined by the default GATContext
.
location
- A String
which represents the URI corresponding to
the physical file.
File
object
GATObjectCreationException
- Thrown upon creation problemspublic static File createFile(Preferences preferences, URI location) throws GATObjectCreationException
File
instance which corresponds to the physical file
identified by the passed URI
and whose access rights are
determined by the default GATContext
with additional
Preferences
.
location
- A URI
which represents the URI corresponding to
the physical file.preferences
- A Preferences
which is used to determine the
user's preferences for this File
, these
Preferences
are added to the Preferences from
GATContext.getPreferences()
, possibly overriding
them.
File
object
GATObjectCreationException
- Thrown upon creation problemspublic static File createFile(Preferences preferences, String location) throws GATObjectCreationException
File
instance which corresponds to the physical file
identified by the passed URI
and whose access rights are
determined by the default GATContext
with additional
Preferences
.
location
- A String
which represents the URI corresponding to
the physical file.preferences
- A Preferences
which is used to determine the
user's preferences for this File
, these
Preferences
are added to the Preferences from
GATContext.getPreferences()
, possibly overriding
them.
File
object
GATObjectCreationException
- Thrown upon creation problemspublic static File createFile(GATContext gatContext, URI location) throws GATObjectCreationException
File
instance which corresponds to the physical file
identified by the passed URI
and whose access rights are
determined by the passed GATContext
.
location
- A URI
which represents the URI corresponding to
the physical file.gatContext
- A GATContext
which is used to determine the access
rights for this File
.
File
object
GATObjectCreationException
- Thrown upon creation problemspublic static File createFile(GATContext gatContext, String location) throws GATObjectCreationException
File
instance which corresponds to the physical file
identified by the passed URI (in String
format) and whose access
rights are determined by the passed GATContext
.
location
- A URI (in String
format) which represents the URI
corresponding to the physical file.gatContext
- A GATContext
which is used to determine the access
rights for this File
.
File
object
GATObjectCreationException
- Thrown upon creation problemspublic static File createFile(GATContext gatContext, Preferences preferences, String location) throws GATObjectCreationException
File
instance which corresponds to the physical file
identified by the passed URI (in String
format) and whose access
rights are determined by the passed GATContext
.
location
- A URI (in String
format) which represents the URI
corresponding to the physical file.gatContext
- A GATContext
which is used to determine the access
rights for this File
.preferences
- A Preferences
which is used to determine the
user's preferences for this File
, these
Preferences
are added to the Preferences from
GATContext.getPreferences()
, possibly overriding
them.
File
object
GATObjectCreationException
- Thrown upon creation problemspublic static File createFile(GATContext gatContext, Preferences preferences, URI location) throws GATObjectCreationException
File
instance which corresponds to the physical file
identified by the passed URI
and whose access rights are
determined by the passed GATContext
.
location
- A URI
which represents the URI corresponding to
the physical file.gatContext
- A GATContext
which is used to determine the access
rights for this File
.preferences
- A Preferences
which is used to determine the
user's preferences for this File
, these
Preferences
are added to the Preferences from
GATContext.getPreferences()
, possibly overriding
them.
File
object
GATObjectCreationException
- Thrown upon creation problemspublic static LogicalFile createLogicalFile(String name, int mode) throws GATObjectCreationException
LogicalFile
corresponding to the passed URI
(in String
format) instance using the default GATContext
.
name
- The name in the logical name spacemode
- The mode to use for opening this logical file. Choose from
LogicalFile.OPEN
, LogicalFile.CREATE
,
LogicalFile.TRUNCATE
LogicalFile
object
GATObjectCreationException
- Thrown upon creation problemspublic static LogicalFile createLogicalFile(Preferences preferences, String name, int mode) throws GATObjectCreationException
LogicalFile
corresponding to the passed URI
(in String
format) instance using the default GATContext
with additional Preferences
.
preferences
- The additional Preferences
name
- The name in the logical name spacemode
- The mode to use for opening this logical file. Choose from
LogicalFile.OPEN
, LogicalFile.CREATE
,
LogicalFile.TRUNCATE
LogicalFile
object
GATObjectCreationException
- Thrown upon creation problemspublic static LogicalFile createLogicalFile(GATContext gatContext, String name, int mode) throws GATObjectCreationException
LogicalFile
corresponding to the passed URI
(in String
format) instance using a specified GATContext
.
gatContext
- The GATContext
name
- The name in the logical name spacemode
- The mode to use for opening this logical file. Choose from
LogicalFile.OPEN
, LogicalFile.CREATE
,
LogicalFile.TRUNCATE
LogicalFile
object
GATObjectCreationException
- Thrown upon creation problemspublic static LogicalFile createLogicalFile(GATContext gatContext, Preferences preferences, String name, int mode) throws GATObjectCreationException
LogicalFile
corresponding to the passed URI
(in String
format) instance using a specified GATContext
with additional Preferences
.
gatContext
- The GATContext
preferences
- The additional Preferences
name
- The name in the logical name spacemode
- The mode to use for opening this logical file. Choose from
LogicalFile.OPEN
, LogicalFile.CREATE
,
LogicalFile.TRUNCATE
LogicalFile
object
GATObjectCreationException
- Thrown upon creation problemspublic static FileInputStream createFileInputStream(URI location) throws GATObjectCreationException
FileInputStream
instance which corresponds to the
physical file identified by the passed URI
and whose access
rights are determined by the default GATContext
.
location
- location of the File
to read from
FileInputStream
object
GATObjectCreationException
- Thrown upon creation problemspublic static FileInputStream createFileInputStream(Preferences preferences, URI location) throws GATObjectCreationException
FileInputStream
instance which corresponds to the
physical file identified by the passed URI
and whose access
rights are determined by the default GATContext
with additional
Preferences
.
location
- location of the File
to read frompreferences
- The additional Preferences
FileInputStream
object
GATObjectCreationException
- Thrown upon creation problemspublic static FileInputStream createFileInputStream(GATContext gatContext, URI location) throws GATObjectCreationException
FileInputStream
instance which corresponds to the
physical file identified by the passed URI
and whose access
rights are determined by the passed GATContext
.
location
- location of the File
to read fromgatContext
- A GATContext
which is used to determine the access
rights for this File
.
FileInputStream
object
GATObjectCreationException
- Thrown upon creation problemspublic static FileInputStream createFileInputStream(GATContext gatContext, Preferences preferences, URI location) throws GATObjectCreationException
FileInputStream
instance which corresponds to the
physical file identified by the passed URI
and whose access
rights are determined by the passed GATContext
with additional
Preferences
.
location
- URI
of the location of the File
to read
fromgatContext
- A GATContext
which is used to determine the access
rights for this File
.preferences
- A Preferences
which is used to determine the
user's preferences for this File
.
FileInputStream
object
GATObjectCreationException
- Thrown upon creation problemspublic static FileInputStream createFileInputStream(File file) throws GATObjectCreationException
FileInputStream
instance which corresponds to the
physical file identified by the passed File
and whose access
rights are determined by the GATContext
of this File
. In
order to create a FileInputStream
with the default
GATContext
, use this code:
GAT.createFileInputStream(GAT.getDefaultGATContext(), file)
file
- the File
to read from
FileInputStream
object
GATObjectCreationException
- Thrown upon creation problemspublic static FileInputStream createFileInputStream(Preferences preferences, File file) throws GATObjectCreationException
FileInputStream
instance which corresponds to the
physical file identified by the passed URI
and whose access
rights are determined by the GATContext
of this File
and
additional Preferences
. In order to create a
FileInputStream
with the default GATContext
, use this
code:
GAT.createFileInputStream(GAT.getDefaultGATContext(), preferences, file)
file
- the File
to read frompreferences
- The additional Preferences
FileInputStream
object
GATObjectCreationException
- Thrown upon creation problemspublic static FileInputStream createFileInputStream(GATContext gatContext, File file) throws GATObjectCreationException
FileInputStream
instance which corresponds to the
physical file identified by the passed File
and whose access
rights are determined by the passed GATContext
.
file
- the File
to read fromgatContext
- A GATContext
which is used to determine the access
rights for this File
.
FileInputStream
object
GATObjectCreationException
- Thrown upon creation problemspublic static FileInputStream createFileInputStream(GATContext gatContext, Preferences preferences, File file) throws GATObjectCreationException
FileInputStream
instance which corresponds to the
physical file identified by the passed file and whose access rights are
determined by the passed GATContext
with additional
Preferences
.
file
- the File
to read fromgatContext
- A GATContext
which is used to determine the access
rights for this File
.preferences
- The additional Preferences
FileInputStream
object
GATObjectCreationException
- Thrown upon creation problemspublic static FileInputStream createFileInputStream(String location) throws GATObjectCreationException
FileInputStream
instance which corresponds to the
physical file identified by the passed URI (in String
format) and
whose access rights are determined by the default GATContext
.
location
- location of the File
to read from
FileInputStream
object
GATObjectCreationException
- Thrown upon creation problemspublic static FileInputStream createFileInputStream(Preferences preferences, String location) throws GATObjectCreationException
FileInputStream
instance which corresponds to the
physical file identified by the passed URI (in String
format) and
whose access rights are determined by the default GATContext
with
additional Preferences
.
preferences
- the additional Preferences
location
- location of the File
to read from
FileInputStream
object
GATObjectCreationException
- Thrown upon creation problemspublic static FileInputStream createFileInputStream(GATContext gatContext, String location) throws GATObjectCreationException
FileInputStream
instance which corresponds to the
physical file identified by the passed URI (in String
format) and
whose access rights are determined by the passed GATContext
.
location
- URI (in String
format) of the location of the
File
to read fromgatContext
- A GATContext
which is used to determine the access
rights for this File
.
FileInputStream
object
GATObjectCreationException
- Thrown upon creation problemspublic static FileInputStream createFileInputStream(GATContext gatContext, Preferences preferences, String location) throws GATObjectCreationException
FileInputStream
instance which corresponds to the
physical file identified by the passed URI (in String
format) and
whose access rights are determined by the passed GATContext
with
additional Preferences
.
location
- URI (in String
format) of the location of the
File
to read fromgatContext
- A GATContext
which is used to determine the access
rights for this File
.preferences
- The additional Preferences
FileInputStream
object
GATObjectCreationException
- Thrown upon creation problemspublic static FileOutputStream createFileOutputStream(String location) throws GATObjectCreationException
FileOutputStream
instance which corresponds to the
physical file identified by the passed URI (in String
format) and
whose access rights are determined by the default GATContext
.
This stream overwrites the existing file.
location
- URI (in String
format) of the location of the
File
to write to
FileOutputStream
object
GATObjectCreationException
- Thrown upon creation problemspublic static FileOutputStream createFileOutputStream(Preferences preferences, String location) throws GATObjectCreationException
FileOutputStream
instance which corresponds to the
physical file identified by the passed URI (in String
format) and
whose access rights are determined by the default GATContext
and
additional Preferences
. This stream overwrites the existing
file.
preferences
- The additional Preferences
location
- URI (in String
format) of the location of the
File
to write to
FileOutputStream
object
GATObjectCreationException
- Thrown upon creation problemspublic static FileOutputStream createFileOutputStream(GATContext gatContext, String location) throws GATObjectCreationException
FileOutputStream
instance which corresponds to the
physical file identified by the passed URI (in String
format) and
whose access rights are determined by the passed GATContext
.
This stream overwrites the existing file.
location
- URI (in String
format) of the location of the
File
to write togatContext
- A GATContext
which is used to determine the access
rights for this File
.
FileOutputStream
object
GATObjectCreationException
- Thrown upon creation problemspublic static FileOutputStream createFileOutputStream(GATContext gatContext, Preferences preferences, String location) throws GATObjectCreationException
FileOutputStream
instance which corresponds to the
physical file identified by the passed URI (in String
format) and
whose access rights are determined by the passed GATContext
and
additional Preferences
. This stream overwrites the existing
file.
location
- URI (in String
format) of the location of the file
to write togatContext
- A GATContext
which is used to determine the access
rights for this File
.preferences
- The additional Preferences
FileOutputStream
object
GATObjectCreationException
- Thrown upon creation problemspublic static FileOutputStream createFileOutputStream(String location, boolean append) throws GATObjectCreationException
FileOutputStream
instance which corresponds to the
physical file identified by the passed URI (in String
format) and
whose access rights are determined by the passed GATContext
.
location
- URI (in String
format) of the location of the file
to write toappend
- if true
, then bytes will be written to the
end of the file rather than the beginning
FileOutputStream
object
GATObjectCreationException
- Thrown upon creation problemspublic static FileOutputStream createFileOutputStream(Preferences preferences, String location, boolean append) throws GATObjectCreationException
FileOutputStream
instance which corresponds to the
physical file identified by the passed URI (in String
format) and
whose access rights are determined by the passed GATContext
and
additional Preferences
.
preferences
- The additional Preferences
location
- URI (in String
format) of the location of the file
to write toappend
- if true
, then bytes will be written to the
end of the file rather than the beginning
FileOutputStream
object
GATObjectCreationException
- Thrown upon creation problemspublic static FileOutputStream createFileOutputStream(GATContext gatContext, String location, boolean append) throws GATObjectCreationException
FileOutputStream
instance which corresponds to the
physical file identified by the passed URI (in String
format) and
whose access rights are determined by the passed GATContext
.
location
- URI (in String
format) of the location of the file
to write togatContext
- A GATContext
which is used to determine the access
rights for this File
.append
- if true
, then bytes will be written to the
end of the file rather than the beginning
FileOutputStream
object
GATObjectCreationException
- Thrown upon creation problemspublic static FileOutputStream createFileOutputStream(GATContext gatContext, Preferences preferences, String location, boolean append) throws GATObjectCreationException
FileOutputStream
instance which corresponds to the
physical file identified by the passed URI (in String
format) and
whose access rights are determined by the passed GATContext
and
additional Preferences
.
location
- URI (in String
format) of the location of the file
to write togatContext
- A GATContext
which is used to determine the access
rights for this File
.preferences
- The additional Preferences
append
- if true
, then bytes will be written to the
end of the file rather than the beginning
FileOutputStream
object
GATObjectCreationException
- Thrown upon creation problemspublic static FileOutputStream createFileOutputStream(File file) throws GATObjectCreationException
FileOutputStream
instance which corresponds to the
physical file identified by the passed File
and whose access
rights are determined by the GATContext
of this File
.
This stream overwrites the existing file. In order to create a
FileOutputStream
with the default GATContext
, use this
code:
GAT.createFileOutputStream(GAT.getDefaultGATContext(), file)
file
- the File
to write to
FileOutputStream
object
GATObjectCreationException
- Thrown upon creation problemspublic static FileOutputStream createFileOutputStream(File file, boolean append) throws GATObjectCreationException
FileOutputStream
instance which corresponds to the
physical file identified by the passed File
and whose access
rights are determined by the GATContext
of this File
. In
order to create a FileOutputStream
with the default
GATContext
, use this code:
GAT.createFileOutputStream(GAT.getDefaultGATContext(), file, append)
file
- the File
to write toappend
- true
if the output stream should append,
false
for overwrite
FileOutputStream
object
GATObjectCreationException
- Thrown upon creation problemspublic static FileOutputStream createFileOutputStream(Preferences preferences, File file) throws GATObjectCreationException
FileOutputStream
instance which corresponds to the
physical file identified by the passed File
and whose access
rights are determined by the GATContext
of this File
and
additional Preferences
. This stream overwrites the existing
file. In order to create a FileOutputStream
with the default
GATContext
, use this code:
GAT.createFileOutputStream(GAT.getDefaultGATContext(), preferences, file)
preferences
- the additional Preferences
file
- the File
to write to
FileOutputStream
object
GATObjectCreationException
- Thrown upon creation problemspublic static FileOutputStream createFileOutputStream(Preferences preferences, File file, boolean append) throws GATObjectCreationException
FileOutputStream
instance which corresponds to the
physical file identified by the passed File
and whose access
rights are determined by the GATContext
of this File
and
additional Preferences
. In order to create a
FileOutputStream
with the default GATContext
, use this
code:
GAT.createFileOutputStream(GAT.getDefaultGATContext(), preferences, file, append)
preferences
- the additional Preferences
file
- the File
to write toappend
- true
if the output stream should append,
false
for overwrite
FileOutputStream
object
GATObjectCreationException
- Thrown upon creation problemspublic static FileOutputStream createFileOutputStream(GATContext gatContext, File file) throws GATObjectCreationException
FileOutputStream
instance which corresponds to the
physical file identified by the passed File
and whose access
rights are determined by the passed GATContext
. This stream
overwrites the existing file.
file
- the <@link File> to write togatContext
- A GATContext
which is used to determine the access
rights for this File
.
FileOutputStream
object
GATObjectCreationException
- Thrown upon creation problemspublic static FileOutputStream createFileOutputStream(GATContext gatContext, Preferences preferences, File file) throws GATObjectCreationException
FileOutputStream
instance which corresponds to the
physical file identified by the passed File
and whose access
rights are determined by the passed GATContext
and additional
Preferences
. This stream overwrites the existing file.
file
- the <@link File> to write togatContext
- A GATContext
which is used to determine the access
rights for this File
.preferences
- the additional Preferences
FileOutputStream
object
GATObjectCreationException
- Thrown upon creation problemspublic static FileOutputStream createFileOutputStream(GATContext gatContext, File file, boolean append) throws GATObjectCreationException
FileOutputStream
instance which corresponds to the
physical file identified by the passed File
and whose access
rights are determined by the passed GATContext
.
file
- the <@link File> to write togatContext
- A GATContext
which is used to determine the access
rights for this File
.
FileOutputStream
object
GATObjectCreationException
- Thrown upon creation problemspublic static FileOutputStream createFileOutputStream(GATContext gatContext, Preferences preferences, File file, boolean append) throws GATObjectCreationException
FileOutputStream
instance which corresponds to the
physical file identified by the passed file and whose access rights are
determined by the passed GATContext
and additional
Preferences
.
file
- the <@link File> to write togatContext
- A GATContext
which is used to determine the access
rights for this File
.preferences
- the additional Preferences
FileOutputStream
object
GATObjectCreationException
- Thrown upon creation problemspublic static FileOutputStream createFileOutputStream(URI location) throws GATObjectCreationException
FileOutputStream
instance which corresponds to the
physical file identified by the passed URI
and whose access
rights are determined by the default GATContext
. This stream
overwrites the existing file.
location
- URI of the location the <@link File> to write to
FileOutputStream
object
GATObjectCreationException
- Thrown upon creation problemspublic static FileOutputStream createFileOutputStream(Preferences preferences, URI location) throws GATObjectCreationException
FileOutputStream
instance which corresponds to the
physical file identified by the passed URI
and whose access
rights are determined by the default GATContext
and additional
Preferences
. This stream overwrites the existing file.
location
- URI of the location the <@link File> to write topreferences
- the additional Preferences
FileOutputStream
object
GATObjectCreationException
- Thrown upon creation problemspublic static FileOutputStream createFileOutputStream(GATContext gatContext, URI location) throws GATObjectCreationException
FileOutputStream
instance which corresponds to the
physical file identified by the passed URI
and whose access
rights are determined by the passed GATContext
. This stream
overwrites the existing file.
location
- URI of the location the <@link File> to write togatContext
- A GATContext
which is used to determine the access
rights for this File
.
FileOutputStream
object
GATObjectCreationException
- Thrown upon creation problemspublic static FileOutputStream createFileOutputStream(GATContext gatContext, Preferences preferences, URI location) throws GATObjectCreationException
FileOutputStream
instance which corresponds to the
physical file identified by the passed URI
and whose access
rights are determined by the passed GATContext
. This stream
overwrites the existing file.
location
- URI of the location the <@link File> to write togatContext
- A GATContext
which is used to determine the access
rights for this File
.
FileOutputStream
object
GATObjectCreationException
- Thrown upon creation problemspublic static FileOutputStream createFileOutputStream(URI location, boolean append) throws GATObjectCreationException
FileOutputStream
instance which corresponds to the
physical file identified by the passed URI
and whose access
rights are determined by the default GATContext
.
location
- URI of the location the <@link File> to write to
FileOutputStream
object
GATObjectCreationException
- Thrown upon creation problemspublic static FileOutputStream createFileOutputStream(Preferences preferences, URI location, boolean append) throws GATObjectCreationException
FileOutputStream
instance which corresponds to the
physical file identified by the passed URI
and whose access
rights are determined by the default GATContext
and additional
Preferences
.
location
- URI of the location the <@link File> to write topreferences
- the additional Preferences
FileOutputStream
object
GATObjectCreationException
- Thrown upon creation problemspublic static FileOutputStream createFileOutputStream(GATContext gatContext, URI location, boolean append) throws GATObjectCreationException
FileOutputStream
instance which corresponds to the
physical file identified by the passed URI
and whose access
rights are determined by the passed GATContext
.
location
- URI of the location the <@link File> to write togatContext
- A GATContext
which is used to determine the access
rights for this File
.
FileOutputStream
object
GATObjectCreationException
- Thrown upon creation problemspublic static FileOutputStream createFileOutputStream(GATContext gatContext, Preferences preferences, URI location, boolean append) throws GATObjectCreationException
FileOutputStream
instance which corresponds to the
physical file identified by the passed URI
and whose access
rights are determined by the passed GATContext
and additional
Preferences
.
location
- URI of the location the <@link File> to write togatContext
- A GATContext
which is used to determine the access
rights for this File
.preferences
- the additional Preferences
FileOutputStream
object
GATObjectCreationException
- Thrown upon creation problemspublic static Endpoint createEndpoint(GATContext gatContext, Preferences preferences) throws GATObjectCreationException
Endpoint
for a Pipe
using the default
GATContext
and additional Preferences
.
gatContext
- A GATContext
which is used to determine the access
rights for this File
.preferences
- the additional Preferences
Endpoint
object
GATObjectCreationException
- Thrown upon creation problemspublic static Endpoint createEndpoint(GATContext gatContext) throws GATObjectCreationException
Endpoint
for a Pipe
using the passed
GATContext
.
gatContext
- A GATContext
which is used to determine the access
rights for this File
.
Endpoint
object
GATObjectCreationException
- Thrown upon creation problemspublic static Endpoint createEndpoint(Preferences preferences) throws GATObjectCreationException
Endpoint
for a Pipe
using the default
GATContext
and additional Preferences
.
preferences
- the additional Preferences
Endpoint
object
GATObjectCreationException
- Thrown upon creation problemspublic static Endpoint createEndpoint() throws GATObjectCreationException
Endpoint
for a Pipe
using the default
GATContext
.
Endpoint
object
GATObjectCreationException
- Thrown upon creation problemspublic static AdvertService createAdvertService(GATContext gatContext, Preferences preferences) throws GATObjectCreationException
AdvertService
object using the passed
GATContext
and additional Preferences
.
gatContext
- A GATContext
which is used to determine the access
rights.preferences
- the additional Preferences
AdvertService
object
GATObjectCreationException
- Thrown upon creation problemspublic static AdvertService createAdvertService(GATContext gatContext) throws GATObjectCreationException
AdvertService
object using the passed
GATContext
.
gatContext
- A GATContext
which is used to determine the access
rights.
AdvertService
object
GATObjectCreationException
- Thrown upon creation problemspublic static AdvertService createAdvertService(Preferences preferences) throws GATObjectCreationException
AdvertService
object using the default
GATContext
and additional Preferences
.
preferences
- the additional Preferences
AdvertService
object
GATObjectCreationException
- Thrown upon creation problemspublic static AdvertService createAdvertService() throws GATObjectCreationException
AdvertService
object using the default
GATContext
.
AdvertService
object
GATObjectCreationException
- Thrown upon creation problemspublic static Monitorable createMonitorable() throws GATObjectCreationException
Monitorable
object using the default
GATContext
Monitorable
object
GATObjectCreationException
- Thrown upon creation problemspublic static Monitorable createMonitorable(Preferences preferences) throws GATObjectCreationException
Monitorable
object using the default
GATContext
and additional Preferences
.
preferences
- The additional Preferences
Monitorable
object
GATObjectCreationException
- Thrown upon creation problemspublic static Monitorable createMonitorable(GATContext gatContext) throws GATObjectCreationException
Monitorable
object using the passed
GATContext
.
gatContext
- A GATContext
object
Monitorable
object
GATObjectCreationException
- Thrown upon creation problemspublic static Monitorable createMonitorable(GATContext gatContext, Preferences preferences) throws GATObjectCreationException
Monitorable
object using the passed
GATContext
and additional Preferences
.
gatContext
- A GATContext
objectpreferences
- The additional Preferences
Monitorable
object
GATObjectCreationException
- Thrown upon creation problemspublic static SteeringManager createSteeringManager() throws GATObjectCreationException
SteeringManager
object using the default
GATContext
.
SteeringManager
GATObjectCreationException
- Thrown upon creation problemspublic static SteeringManager createSteeringManager(Preferences preferences) throws GATObjectCreationException
SteeringManager
object using the default
GATContext
and additional Preferences
.
preferences
- The additional Preferences
SteeringManager
GATObjectCreationException
- Thrown upon creation problemspublic static SteeringManager createSteeringManager(GATContext gatContext) throws GATObjectCreationException
SteeringManager
object using the passed
GATContext
.
gatContext
- A GATContext
object
SteeringManager
GATObjectCreationException
- Thrown upon creation problemspublic static SteeringManager createSteeringManager(GATContext gatContext, Preferences preferences) throws GATObjectCreationException
SteeringManager
object using the passed
GATContext
and additional Preferences
.
gatContext
- A GATContext
objectpreferences
- The additional Preferences
SteeringManager
GATObjectCreationException
- Thrown upon creation problemspublic static RandomAccessFile createRandomAccessFile(String location, String mode) throws GATObjectCreationException
RandomAccessFile
instance which corresponds to the
physical file identified by the passed URI (in String
format) and
whose access rights are determined by the default GATContext
.
location
- a URI (in String
format) for the file to access.mode
- The mode to open the file with. See
RandomAccessFile
for details.
RandomAccessFile
object
GATObjectCreationException
- Thrown upon creation problemspublic static RandomAccessFile createRandomAccessFile(Preferences preferences, String location, String mode) throws GATObjectCreationException
RandomAccessFile
instance which corresponds to the
physical file identified by the passed URI (in String
format) and
whose access rights are determined by the default GATContext
and
additional Preferences
.
preferences
- The additional Preferences
location
- a URI (in String
format) for the file to access.mode
- The mode to open the file with. See
RandomAccessFile
for details.
RandomAccessFile
object
GATObjectCreationException
- Thrown upon creation problemspublic static RandomAccessFile createRandomAccessFile(GATContext gatContext, String location, String mode) throws GATObjectCreationException
RandomAccessFile
instance which corresponds to the
physical file identified by the passed URI (in String
format) and
whose access rights are determined by the passed GATContext
.
gatContext
- A GATContext
which is used to determine the access
rights for this File
.location
- a URI (in String
format) for the file to access.mode
- The mode to open the file with. See
RandomAccessFile
for details.
RandomAccessFile
object
GATObjectCreationException
- Thrown upon creation problemspublic static RandomAccessFile createRandomAccessFile(GATContext gatContext, Preferences preferences, String location, String mode) throws GATObjectCreationException
RandomAccessFile
instance which corresponds to the
physical file identified by the passed URI (in String
format) and
whose access rights are determined by the passed GATContext
and
additional Preferences
.
gatContext
- A GATContext
which is used to determine the access
rights for this File
.preferences
- The additional Preferences
location
- the URI (in String
format) of the file to accessmode
- The mode to open the file with. See
RandomAccessFile
for details.
RandomAccessFile
object
GATObjectCreationException
- Thrown upon creation problemspublic static RandomAccessFile createRandomAccessFile(URI location, String mode) throws GATObjectCreationException
RandomAccessFile
instance which corresponds to the
physical file identified by the passed URI
and whose access
rights are determined by the default GATContext
.
location
- a URI
for the file to access.mode
- The mode to open the file with. See
RandomAccessFile
for details.
RandomAccessFile
object
GATObjectCreationException
- Thrown upon creation problemspublic static RandomAccessFile createRandomAccessFile(Preferences preferences, URI location, String mode) throws GATObjectCreationException
RandomAccessFile
instance which corresponds to the
physical file identified by the passed URI
and whose access
rights are determined by the default GATContext
and additional
Preferences
.
preferences
- The additional Preferences
location
- a URI
for the file to access.mode
- The mode to open the file with. See
RandomAccessFile
for details.
RandomAccessFile
object
GATObjectCreationException
- Thrown upon creation problemspublic static RandomAccessFile createRandomAccessFile(GATContext gatContext, URI location, String mode) throws GATObjectCreationException
RandomAccessFile
instance which corresponds to the
physical file identified by the passed URI
and whose access
rights are determined by the passed GATContext
.
gatContext
- A GATContext
which is used to determine the access
rights for this File
.location
- a URI
for the file to access.mode
- The mode to open the file with. See
RandomAccessFile
for details.
RandomAccessFile
object
GATObjectCreationException
- Thrown upon creation problemspublic static RandomAccessFile createRandomAccessFile(GATContext gatContext, Preferences preferences, URI location, String mode) throws GATObjectCreationException
RandomAccessFile
instance which corresponds to the
physical file identified by the passed URI
and whose access
rights are determined by the passed GATContext
and additional
Preferences
.
gatContext
- A GATContext
which is used to determine the access
rights for this File
.preferences
- The additional Preferences
location
- the URISyntaxException
of the file to accessmode
- The mode to open the file with. See
RandomAccessFile
for details.
RandomAccessFile
object
GATObjectCreationException
- Thrown upon creation problemspublic static ResourceBroker createResourceBroker(URI brokerURI) throws GATObjectCreationException
ResourceBroker
instance corresponding to
the default GATContext
.
ResourceBroker
object
GATObjectCreationException
- Thrown upon creation problemspublic static ResourceBroker createResourceBroker(Preferences preferences, URI brokerURI) throws GATObjectCreationException
ResourceBroker
instance corresponding to
the default GATContext
and additional Preferences
.
preferences
- the additional Preferences
ResourceBroker
object
GATObjectCreationException
- Thrown upon creation problemspublic static ResourceBroker createResourceBroker(GATContext gatContext, URI brokerURI) throws GATObjectCreationException
ResourceBroker
instance corresponding to
the passed GATContext
.
gatContext
- A GATContext
which will be used to broker
resources
ResourceBroker
object
GATObjectCreationException
- Thrown upon creation problemspublic static ResourceBroker createResourceBroker(GATContext gatContext, Preferences preferences, URI brokerURI) throws GATObjectCreationException
ResourceBroker
instance corresponding to
the passed GATContext
and additional Preferences
.
gatContext
- A GATContext
which will be used to broker
resourcespreferences
- The additional Preferences
ResourceBroker
object
GATObjectCreationException
- Thrown upon creation problemspublic static AdaptorInfo[] getAdaptorInfos(String type) throws GATInvocationException
type
- an adaptor type
GATInvocationException
public static String[] getAdaptorTypes() throws GATInvocationException
GATInvocationException
public static void end()
public static void setDefaultGATContext(GATContext context)
GATContext
to the new value. This will replace
the previous value.
context
- the new GATContext
public static GATContext getDefaultGATContext()
GATContext
.
GATContext
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |