|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface that defines a WebLogic File System. WebLogic File Systems are produced by the IO services factory. They may represent the local file system on the client or a remote file system on the server. This makes it easy to write code that treats the two uniformly.
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);
To make a directory on a WebLogic server available as a remote file system, sometimes called a "mount point", set the property weblogic.io.fileSystem in the config.xml file. For example, to make the directory /dirA/dirB/dirC available as myFileSystem, include weblogic.io.fileSystem.myFileSystem=/dirA/dirB/dirC.
IOServicesDef
,
T3File
Method Summary | |
T3File |
getFile(java.lang.String path)
Deprecated. Deprecated in WebLogic Server 6.1. |
T3File |
getFile(java.lang.String path,
java.lang.String name)
Deprecated. Returns a T3File with name path + separator() + name. |
T3FileInputStream |
getFileInputStream(java.lang.String path)
Deprecated. Deprecated in WebLogic Server 6.1. |
T3FileInputStream |
getFileInputStream(java.lang.String path,
int bufferSize,
int readAhead)
Deprecated. Deprecated in WebLogic Server 6.1. |
T3FileOutputStream |
getFileOutputStream(java.lang.String path)
Deprecated. Deprecated in WebLogic Server 6.1. |
T3FileOutputStream |
getFileOutputStream(java.lang.String path,
int bufferSize,
int writeBehind)
Deprecated. Deprecated in WebLogic Server 6.1. |
java.lang.String |
getName()
Deprecated. Deprecated in WebLogic Server 6.1. |
java.lang.String |
pathSeparator()
Deprecated. Deprecated in WebLogic Server 6.1. |
java.lang.String |
separator()
Deprecated. Deprecated in WebLogic Server 6.1. |
Method Detail |
public java.lang.String separator()
public java.lang.String pathSeparator()
public T3File getFile(java.lang.String path)
path
- The name of the file.public T3File getFile(java.lang.String path, java.lang.String name)
path
- The path to the parent of the file.name
- The name of the file.public java.lang.String getName()
public 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/docs81 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |