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