Interface MultiStreamDataSource

  • All Superinterfaces:
    DataSource

    public interface MultiStreamDataSource
    extends DataSource
    A data source with multiple input streams, each identified by a unique name. FolderDataSource may serve as a good example of a concrete implementation.
    • Method Detail

      • openInputStream

        @NotNull
        InputStream openInputStream​(String name)
                             throws IOException
        Access named stream for reading. Caller is responsible to close the stream once done.
        Parameters:
        name - name of the stream to read // fixme what does it mean -- the name???
        Returns:
        stream to read from, never null
        Throws:
        IOException - if failed to open given named stream
      • openOutputStream

        @NotNull
        OutputStream openOutputStream​(String name)
                               throws IOException
        Access named stream for writing. Caller is responsible to close the stream once done.
        Parameters:
        name - name of the stream to write
        Returns:
        stream to write to, never null
        Throws:
        IOException
      • delete

        boolean delete​(String name)