|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
I
- Concrete type used in covariant returnpublic interface StreamImporter<I extends StreamImporter<I>>
Generic importer capable of representing an Assignable
as an entity capable of reading from an
InputStream
, or file type.
Method Summary | |
---|---|
I |
importFrom(File file)
Imports provided File as a Archive . |
I |
importFrom(InputStream stream)
Imports provided stream as a Archive . |
Methods inherited from interface org.jboss.shrinkwrap.api.Assignable |
---|
as |
Method Detail |
---|
I 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 process
IllegalArgumentException
- If no stream is specifiedI importFrom(File file) throws ArchiveImportException
Archive
.
file
- the file to import
ArchiveImportException
- If an error occurred during the import process
IllegalArgumentException
- If no file is specified or if the file is a directory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |