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(File file)
Imports provided File as a
Archive. |
I |
importFrom(InputStream stream)
Imports provided stream as a
Archive. |
asI importFrom(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 processIllegalArgumentException - If no stream is specifiedI importFrom(File file) throws ArchiveImportException
Archive.file - the file to importArchiveImportException - If an error occurred during the import processIllegalArgumentException - If no file is specified or if the file is a directoryCopyright © 2014 JBoss by Red Hat. All Rights Reserved.