uk.ac.starlink.util

## Class SuperJar.PathSet

- java.lang.Object
- - uk.ac.starlink.util.SuperJar.PathSet

- Enclosing class:
    SuperJar

      public static class SuperJar.PathSet
      extends java.lang.Object

  Defines a set of zip file paths.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `PathSet(java.util.Collection<java.lang.String> paths)` Constructor.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `matches(java.util.zip.ZipEntry entry)` Indicates whether the given entry falls within this path set.

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

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

- - ### Constructor Detail

    - #### PathSet

          public PathSet(java.util.Collection<java.lang.String> paths)

      Constructor. The supplied strings are full zip entry pathnames with no leading "/", interpreted as follows:
      - ending in "/": exclude that directory and all children
      - ending in "/*": exclude all flat files, but not subdirectories of that directory
      - otherwise: exclude the flat file with that exact name
      Parameters:
        `paths` - list of paths to include, copied at construction time

  - ### Method Detail

    - #### matches

          public boolean matches(java.util.zip.ZipEntry entry)

      Indicates whether the given entry falls within this path set.
      Parameters:
        `entry` - zip entry
      Returns:
        true iff entry matches