|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface that defines an IO services factory. Use this interface to manufacture objects for WebLogic File System access. The IO services factory methods take the place of constructors for objects that are used by WebLogic File System services.
Here's an example of how this interface is used in the process of writing a remote file:
T3Client t3 = new T3Client("t3://host:port"); // Get file system, file, and output stream. T3FileSystem myfs = t3.services.io().getFileSystem("myFileSystem"); T3File myFile = myfs.getFile("someDirectory/someFile"); T3FileOutputStream os = myFile.getFileOutputStream(); // Use normal OutputStream operations on os to // write a byte "b" to the output stream os.write(b);
T3ServicesDef
,
T3FileSystem
Method Summary | |
T3File |
getFile(java.lang.String path)
This method takes a file system name and a file name combined in a single String, gets the file system, gets the file from the file system, and returns the file. |
T3FileInputStream |
getFileInputStream(java.lang.String path)
Convenience method that calls getFile(path) and then invokes the getFileInputStream() method of the resulting T3File. |
T3FileInputStream |
getFileInputStream(java.lang.String path,
int bufferSize,
int readAhead)
Convenience method that calls getFile(path) and then invokes the getFileInputStream(bufferSize, readAhead) method of the resulting T3File. |
T3FileInputStream |
getFileInputStream(T3File file)
Convenience method that invokes the getFileInputStream() method of a T3File. |
T3FileInputStream |
getFileInputStream(T3File file,
int bufferSize,
int readAhead)
Convenience method that invokes the getFileInputStream(bufferSize, readAhead) method of a T3File. |
T3FileOutputStream |
getFileOutputStream(java.lang.String path)
Convenience method that calls getFile(path) and then invokes the getFileOutputStream() method of the resulting T3File. |
T3FileOutputStream |
getFileOutputStream(java.lang.String path,
int bufferSize,
int writeBehind)
Convenience method that calls getFile(path) and then invokes the getFileOutputStream(bufferSize, writeBehind) method of the resulting T3File. |
T3FileOutputStream |
getFileOutputStream(T3File file)
Convenience method that invokes the getFileOutputStream() method of a T3File. |
T3FileOutputStream |
getFileOutputStream(T3File file,
int bufferSize,
int writeBehind)
Convenience method that invokes the getFileOutputStream(bufferSize, writeBehind) method of a T3File. |
T3FileSystem |
getFileSystem(java.lang.String fileSystemName)
This method provides the primary file service of the IOServices object - it produces T3FileSystem objects given their names. |
java.util.Enumeration |
listFileSystems()
This method produces the names of all the file systems on the server. |
Method Detail |
public T3FileSystem getFileSystem(java.lang.String fileSystemName) throws T3Exception
fileSystemName
- The name of the file system.public java.util.Enumeration listFileSystems() throws T3Exception
public T3File getFile(java.lang.String path) throws T3Exception
path
- The file system name and file name in the form
//fsname/filename or \\fsname\filename.public T3FileInputStream getFileInputStream(T3File file) throws T3Exception
file
- The file from which to get the streampublic T3FileInputStream getFileInputStream(T3File file, int bufferSize, int readAhead) throws T3Exception
file
- The file from which to get the streambufferSize
- Size of transfer buffers in bytesreadAhead
- Number of transfer buffers fetched in advancepublic T3FileOutputStream getFileOutputStream(T3File file) throws T3Exception
file
- The file from which to get the streampublic T3FileOutputStream getFileOutputStream(T3File file, int bufferSize, int writeBehind) throws T3Exception
file
- The file from which to get the streambufferSize
- Size of transfer buffers in byteswriteBehind
- Number of unwritten transfer bufferspublic T3FileInputStream getFileInputStream(java.lang.String path) throws T3Exception
path
- The name of the file from which to get the streampublic T3FileInputStream getFileInputStream(java.lang.String path, int bufferSize, int readAhead) throws T3Exception
path
- The name of the file from which to get the streambufferSize
- Size of transfer buffers in bytesreadAhead
- Number of transfer buffers fetched in advancepublic T3FileOutputStream getFileOutputStream(java.lang.String path) throws T3Exception
path
- The name of the file from which to get the streampublic T3FileOutputStream getFileOutputStream(java.lang.String path, int bufferSize, int writeBehind) throws T3Exception
path
- The name of the file from which to get the streambufferSize
- Size of transfer buffers in byteswriteBehind
- Number of unwritten transfer buffers
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs60 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |