public interface ArchiveStreamProvider
ArchiveInputStream
s and ArchiveOutputStream
s.Modifier and Type | Method and Description |
---|---|
ArchiveInputStream |
createArchiveInputStream(java.lang.String name,
java.io.InputStream in,
java.lang.String encoding)
Creates an archive input stream from an archiver name and an input
stream.
|
ArchiveOutputStream |
createArchiveOutputStream(java.lang.String name,
java.io.OutputStream out,
java.lang.String encoding)
Creates an archive output stream from an archiver name and an output
stream.
|
java.util.Set<java.lang.String> |
getInputStreamArchiveNames()
Gets all the input stream archive names for this provider
|
java.util.Set<java.lang.String> |
getOutputStreamArchiveNames()
Gets all the output stream archive names for this provider
|
ArchiveInputStream createArchiveInputStream(java.lang.String name, java.io.InputStream in, java.lang.String encoding) throws ArchiveException
name
- the archive name, i.e.
"ar",
"arj",
"zip",
"tar",
"jar",
"cpio",
"dump"
or
"7z"in
- 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 streamjava.lang.IllegalArgumentException
- if the archiver name or stream is nullArchiveOutputStream createArchiveOutputStream(java.lang.String name, java.io.OutputStream out, java.lang.String encoding) throws ArchiveException
name
- the archive name, i.e.
"ar",
"zip",
"tar",
"jar"
or
"cpio"out
- 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 streamjava.lang.IllegalArgumentException
- if the archiver name or stream is nulljava.util.Set<java.lang.String> getInputStreamArchiveNames()
java.util.Set<java.lang.String> getOutputStreamArchiveNames()
Copyright © 2010 - 2020 Adobe. All Rights Reserved