Package playn.java

Class SharedLibraryExtractor

java.lang.Object
playn.java.SharedLibraryExtractor

public class SharedLibraryExtractor
extends Object
Extracts shared libraries from a natives jar file. Adapted from libGDX project code.
  • Constructor Details

    • SharedLibraryExtractor

      public SharedLibraryExtractor()
  • Method Details

    • extractLibrary

      public File extractLibrary​(String libraryName, String dirName) throws IOException
      Extracts the specified library into the specified temp directory (if it has not already been extracted thereto, or if the CRC does not match).
      Parameters:
      libraryName - The library to extract from the classpath or JAR.
      dirName - The name of the subdirectory where the file will be extracted. If null, the file's CRC will be used.
      Returns:
      The extracted file.
      Throws:
      IOException