Interface DerivedFileProducer

    • Method Detail

      • produceDerivedStream

        java.io.InputStream produceDerivedStream​(java.io.File srcFile)
                                          throws java.io.IOException,
                                                 CancelledException
        Callback method intended to be implemented by the caller to FileSystemService.getDerivedFile(FSRL, String, DerivedFileProducer, TaskMonitor).

        The implementation needs to return an InputStream that contains the bytes of the derived file.

        Parameters:
        srcFile - File location of the source file (usually in the file cache)
        Returns:
        a new InputStream that will produce all the bytes of the derived file.
        Throws:
        java.io.IOException - if there is a problem while producing the InputStream.
        CancelledException - if the user canceled.