XPRDFileManager
-
public interface XPRDFileManagerAn interface to generate pseudo files
-
-
Method Summary
Modifier and Type Method and Description java.io.InputStreamopenForReading(java.lang.String fname, int mode)Try to open a file for reading operations.java.io.OutputStreamopenForWriting(java.lang.String fname, int mode)Try to open a file for writing operations.
-
-
-
Method Detail
-
openForWriting
java.io.OutputStream openForWriting(java.lang.String fname, int mode) throws java.io.IOExceptionTry to open a file for writing operations.- Parameters:
-
fname- file name -
mode- open mode - Returns:
-
an OutputStream if successful or
nullif the manager cannot handle this file (it will be processed as a local file by XPRD) - Throws:
-
java.io.IOException- if the manager handles the file but failed to open it
-
openForReading
java.io.InputStream openForReading(java.lang.String fname, int mode) throws java.io.IOExceptionTry to open a file for reading operations.- Parameters:
-
fname- file name -
mode- open mode - Returns:
-
an InputStream if successful or
nullif the manager cannot handle this file (it will be processed as a local file by XPRD) - Throws:
-
java.io.IOException- if the manager handles the file but failed to open it
-
-
