Class JarBinSource

java.lang.Object
dxt.scanpath.v2.io.JarBinSource
All Implemented Interfaces:
BinSource

public class JarBinSource extends Object implements BinSource
Discovers class-file entries within a JAR archive.
Author:
indroneel
  • Constructor Details

    • JarBinSource

      public JarBinSource(JarFile file)
      Creates a source backed by the supplied JAR file.
      Parameters:
      file - the JAR file to scan
  • Method Details

    • getFiles

      public Iterable<BinFile> getFiles()
      Returns all non-directory entries whose names end with .class.
      Specified by:
      getFiles in interface BinSource
      Returns:
      the discovered JAR class-file entries
    • close

      public void close()
      Closes the underlying JAR file.
      Specified by:
      close in interface BinSource
    • toString

      public String toString()
      Returns the path of the underlying JAR file.
      Overrides:
      toString in class Object
      Returns:
      the JAR file path