Class JarFileScanner

java.lang.Object
org.glassfish.jersey.server.internal.AbstractResourceFinderAdapter
org.glassfish.jersey.server.internal.scanning.JarFileScanner
All Implemented Interfaces:
AutoCloseable, Iterator<String>, ResourceFinder

public final class JarFileScanner extends AbstractResourceFinderAdapter
A utility class that scans entries in jar files.
Author:
Paul Sandoz
  • Constructor Details

    • JarFileScanner

      public JarFileScanner(InputStream inputStream, String parent, boolean recursive) throws IOException
      Create new JAR file scanner.
      Parameters:
      inputStream - JAR file input stream
      parent - JAR file entry prefix.
      recursive - if (true the packages will be scanned recursively together with any nested packages, if false only the explicitly listed packages will be scanned.
      Throws:
      IOException - if wrapping given input stream into JarInputStream failed.
  • Method Details