Interface StreamImporter<I extends StreamImporter<I>>

    • Method Detail

      • importFrom

        I importFrom​(java.io.InputStream stream)
              throws ArchiveImportException
        Imports provided stream as a Archive. It remains the responsibility of the caller to close the stream.
        Parameters:
        stream - the stream to import; should be a raw type, not wrapped in any implementation-specific encoding (ie. FileInputStream is appropriate, but ZipInputStream or GZIPInputStream is not).
        Returns:
        Archive of the imported stream
        Throws:
        ArchiveImportException - If an error occurred during the import process
        java.lang.IllegalArgumentException - If no stream is specified
      • importFrom

        I importFrom​(java.io.InputStream stream,
                     Filter<ArchivePath> filter)
              throws ArchiveImportException
        Imports provided stream as a Archive. It remains the responsibility of the caller to close the stream.
        Parameters:
        stream - the stream to import; should be a raw type, not wrapped in any implementation-specific encoding (ie. FileInputStream is appropriate, but ZipInputStream or GZIPInputStream is not).
        filter - Filter to match result
        Returns:
        Archive of the imported stream
        Throws:
        ArchiveImportException - If an error occurred during the import process
        java.lang.IllegalArgumentException - If no stream is specified
      • importFrom

        I importFrom​(java.io.File file)
              throws ArchiveImportException
        Imports provided File as a Archive.
        Parameters:
        file - the file to import
        Returns:
        Archive of the imported file
        Throws:
        ArchiveImportException - If an error occurred during the import process
        java.lang.IllegalArgumentException - If no file is specified or if the file is a directory
      • importFrom

        I importFrom​(java.io.File file,
                     Filter<ArchivePath> filter)
              throws ArchiveImportException
        Imports provided File as a Archive.
        Parameters:
        file - the file to import
        filter - Filter to match result
        Returns:
        Archive of the imported file
        Throws:
        ArchiveImportException - If an error occurred during the import process
        java.lang.IllegalArgumentException - If no file is specified or if the file is a directory