Class Lister
java.lang.Object
org.apache.commons.compress.archivers.Lister
Simple command line application that lists the contents of an archive.
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.
- Since:
- 1.1
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static ArchiveInputStream
createArchiveInputStream
(String[] args, InputStream fis) private static String
detectFormat
(File f) private static void
private static void
listStream
(File f, String[] args) private static void
private static void
static void
private static void
usage()
-
Field Details
-
FACTORY
-
-
Constructor Details
-
Lister
public Lister()
-
-
Method Details
-
main
- Throws:
Exception
-
listStream
- Throws:
ArchiveException
IOException
-
createArchiveInputStream
private static ArchiveInputStream createArchiveInputStream(String[] args, InputStream fis) throws ArchiveException - Throws:
ArchiveException
-
detectFormat
- Throws:
ArchiveException
IOException
-
list7z
- Throws:
ArchiveException
IOException
-
listZipUsingZipFile
- Throws:
ArchiveException
IOException
-
listZipUsingTarFile
- Throws:
ArchiveException
IOException
-
usage
private static void usage()
-