Class RpmPackage

java.lang.Object
io.kojan.javadeptools.rpm.RpmPackage

public class RpmPackage extends Object
Representation of a RPM package file that is present in the local file system.
Author:
Mikolaj Izdebski
  • Constructor Details

    • RpmPackage

      public RpmPackage(Path path) throws IOException
      Read RPM package from disk.
      Parameters:
      path - path to a file to read as RPM package
      Throws:
      IOException - when given file is not a RPM valid package or when I/O error occurs reading package from disk
  • Method Details

    • getPath

      public Path getPath()
      Returns path to RPM package in the file system.
      Returns:
      path to RPM package
    • getInfo

      public RpmInfo getInfo()
      Returns detailed information about RPM package, extracted from RPM header.
      Returns:
      RpmInfo for the RPM package
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object