Class AbstractFSConsumer

    • Method Detail

      • getOutputStream

        protected OutputStream getOutputStream​(OutputStreamFactory fsOSFactory,
                                               FileResource fileResource)
        Use this for consistent logging of exceptions. Clients must check for whether the os is null, which is the signal that the output file already exists and should be skipped.
        Parameters:
        fsOSFactory - factory that creates the outputstream
        fileResource - used by the OSFactory to create the stream
        Returns:
        the OutputStream or null if the output file already exists
      • getInputStream

        protected InputStream getInputStream​(FileResource fileResource)
        Parameters:
        fileResource -
        Returns:
        inputStream, can be null if there is an exception opening IS