I
- Concrete type used in covariant returnpublic interface StreamImporter<I extends StreamImporter<I>> extends Assignable
Assignable
as an entity capable of reading from an
InputStream
, or file type.Modifier and Type | Method and Description |
---|---|
I |
importFrom(java.io.File file)
Imports provided File as a
Archive . |
I |
importFrom(java.io.File file,
Filter<ArchivePath> filter)
Imports provided File as a
Archive . |
I |
importFrom(java.io.InputStream stream)
Imports provided stream as a
Archive . |
I |
importFrom(java.io.InputStream stream,
Filter<ArchivePath> filter)
Imports provided stream as a
Archive . |
as
I importFrom(java.io.InputStream stream) throws ArchiveImportException
Archive
. It remains the responsibility of the caller to close the stream.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).ArchiveImportException
- If an error occurred during the import processjava.lang.IllegalArgumentException
- If no stream is specifiedI importFrom(java.io.InputStream stream, Filter<ArchivePath> filter) throws ArchiveImportException
Archive
. It remains the responsibility of the caller to close the stream.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 resultArchiveImportException
- If an error occurred during the import processjava.lang.IllegalArgumentException
- If no stream is specifiedI importFrom(java.io.File file) throws ArchiveImportException
Archive
.file
- the file to importArchiveImportException
- If an error occurred during the import processjava.lang.IllegalArgumentException
- If no file is specified or if the file is a directoryI importFrom(java.io.File file, Filter<ArchivePath> filter) throws ArchiveImportException
Archive
.file
- the file to importfilter
- Filter to match resultArchiveImportException
- If an error occurred during the import processjava.lang.IllegalArgumentException
- If no file is specified or if the file is a directory