Initializing help system before first use

XPRDFileManager



  • public interface XPRDFileManager
    An interface to generate pseudo files
    • Method Summary

      Modifier and Type Method and Description
      java.io.InputStream openForReading(java.lang.String fname, int mode)
      Try to open a file for reading operations.
      java.io.OutputStream openForWriting(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.IOException
        Try to open a file for writing operations.
        Parameters:
        fname - file name
        mode - open mode
        Returns:
        an OutputStream if successful or null if 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.IOException
        Try to open a file for reading operations.
        Parameters:
        fname - file name
        mode - open mode
        Returns:
        an InputStream if successful or null if 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