public interface ArchiveStreamProvider
ArchiveInputStreams and ArchiveOutputStreams.| Modifier and Type | Method and Description |
|---|---|
<I extends ArchiveInputStream<? extends ArchiveEntry>> |
createArchiveInputStream(String archiverName,
InputStream inputStream,
String encoding)
Creates an archive input stream from an archiver name and an input stream.
|
<O extends ArchiveOutputStream<? extends ArchiveEntry>> |
createArchiveOutputStream(String archiverName,
OutputStream outputStream,
String encoding)
Creates an archive output stream from an archiver name and an output stream.
|
Set<String> |
getInputStreamArchiveNames()
Gets all the input stream archive names for this provider
|
Set<String> |
getOutputStreamArchiveNames()
Gets all the output stream archive names for this provider
|
<I extends ArchiveInputStream<? extends ArchiveEntry>> I createArchiveInputStream(String archiverName, InputStream inputStream, String encoding) throws ArchiveException
I - The ArchiveInputStream type.archiverName - the archiver name, i.e. "ar",
"arj",
"zip",
"tar",
"jar",
"cpio",
"dump" or
"7z"inputStream - the input streamencoding - encoding name or null for the defaultArchiveException - if the archiver name is not knownStreamingNotSupportedException - if the format cannot be read from a streamIllegalArgumentException - if the archiver name or stream is null<O extends ArchiveOutputStream<? extends ArchiveEntry>> O createArchiveOutputStream(String archiverName, OutputStream outputStream, String encoding) throws ArchiveException
O - The ArchiveInputStream type.archiverName - the archiver name, i.e. "ar",
"zip",
"tar",
"jar" or
"cpio"outputStream - the output streamencoding - encoding name or null for the defaultArchiveException - if the archiver name is not knownStreamingNotSupportedException - if the format cannot be written to a streamIllegalArgumentException - if the archiver name or stream is nullSet<String> getInputStreamArchiveNames()
Copyright © 2002–2025. All rights reserved.