org.apache.commons.compress.archivers

## Class Lister

- java.lang.Object
- - org.apache.commons.compress.archivers.Lister

-     public final class Lister
      extends Object

  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

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Lister()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `main(String[] args)` Runs this class from the command line.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Lister

          public Lister()

  - ### Method Detail

    - #### main

          public static void main(String[] args)
                           throws ArchiveException,
                                  IOException

      Runs this class from the command line.

      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.

      Parameters:
        `args` - name of the archive and optional argument archive type.
      Throws:
        `ArchiveException` - Archiver related Exception.
        `IOException` - an I/O exception.

Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.