public class TarImporterImpl extends AssignableBase<Archive<?>> implements TarImporter
Archive
Constructor and Description |
---|
TarImporterImpl(Archive<?> archive) |
Modifier and Type | Method and Description |
---|---|
I |
importFrom(File file)
Imports provided File as a
Archive . |
I |
importFrom(File file,
Filter<ArchivePath> filter)
Imports provided File as a
Archive . |
I |
importFrom(InputStream stream)
Imports provided stream as a
Archive . |
I |
importFrom(InputStream stream,
Filter<ArchivePath> filter)
Imports provided stream as a
Archive . |
as, getArchive
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
importFrom, importFrom, importFrom, importFrom
as
public TarImporterImpl(Archive<?> archive)
public I importFrom(InputStream stream) throws ArchiveImportException
Archive
. It remains the responsibility of the caller to close the stream.importFrom
in interface StreamImporter<I extends StreamImporter<I>>
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 processStreamImporter.importFrom(java.io.InputStream)
public I importFrom(InputStream stream, Filter<ArchivePath> filter) throws ArchiveImportException
Archive
. It remains the responsibility of the caller to close the stream.importFrom
in interface StreamImporter<I extends StreamImporter<I>>
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 processStreamImporter.importFrom(java.io.InputStream, Filter)
public I importFrom(File file) throws ArchiveImportException
Archive
.importFrom
in interface StreamImporter<I extends StreamImporter<I>>
file
- the file to importArchiveImportException
- If an error occurred during the import processStreamImporter.importFrom(java.io.File)
public I importFrom(File file, Filter<ArchivePath> filter) throws ArchiveImportException
Archive
.importFrom
in interface StreamImporter<I extends StreamImporter<I>>
file
- the file to importfilter
- Filter to match resultArchiveImportException
- If an error occurred during the import processStreamImporter.importFrom(java.io.File, Filter)
Copyright © 2016 JBoss by Red Hat. All rights reserved.