code: public static String getVersion()
      {
  
          URL versionFile = SnappyLoader.class
                  .getResource("/META-INF/maven/org.xerial.snappy/snappy-java/pom.properties");
          if (versionFile == null) {
              versionFile = SnappyLoader.class.getResource("/org/xerial/snappy/VERSION");
          }
  
          String version = "unknown";
          try {
              if (versionFile != null) {
                  Properties versionData = new Properties();
                  versionData.load(versionFile.openStream());
                  version = versionData.getProperty("version", version);
                  if (version.equals("unknown")) {
                      version = versionData.getProperty("SNAPPY_VERSION", version);
                  }
                  version = version.trim().replaceAll("[^0-9M\\.]", "");
              }
          }
          catch (IOException e) {
              System.err.println(e);
          }
          return version;
      }
docs: Get the snappy-java version by reading pom.properties embedded in jar.
  This version data is used as a suffix of a dll file extracted from the
  jar.
  
  @return the version string