public final class Lister
extends java.lang.Object
The name of the archive must be given as a command line argument.
The optional second argument defines the archive type, in case the format is not recognized.
Modifier and Type | Field and Description |
---|---|
private static ArchiveStreamFactory |
factory |
Constructor and Description |
---|
Lister() |
Modifier and Type | Method and Description |
---|---|
private static ArchiveInputStream |
createArchiveInputStream(java.lang.String[] args,
java.io.InputStream fis) |
private static java.lang.String |
detectFormat(java.io.File f) |
private static void |
list7z(java.io.File f) |
private static void |
listStream(java.io.File f,
java.lang.String[] args) |
private static void |
listZipUsingZipFile(java.io.File f) |
static void |
main(java.lang.String[] args) |
private static void |
usage() |
private static final ArchiveStreamFactory factory
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
private static void listStream(java.io.File f, java.lang.String[] args) throws ArchiveException, java.io.IOException
ArchiveException
java.io.IOException
private static ArchiveInputStream createArchiveInputStream(java.lang.String[] args, java.io.InputStream fis) throws ArchiveException
ArchiveException
private static java.lang.String detectFormat(java.io.File f) throws ArchiveException, java.io.IOException
ArchiveException
java.io.IOException
private static void list7z(java.io.File f) throws ArchiveException, java.io.IOException
ArchiveException
java.io.IOException
private static void listZipUsingZipFile(java.io.File f) throws ArchiveException, java.io.IOException
ArchiveException
java.io.IOException
private static void usage()