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 Summary
Constructors Constructor Description SharedLibraryExtractor() -
Method Summary
Modifier and Type Method Description FileextractLibrary(String libraryName, String dirName)Extracts the specified library into the specified temp directory (if it has not already been extracted thereto, or if the CRC does not match).
-
Constructor Details
-
SharedLibraryExtractor
public SharedLibraryExtractor()
-
-
Method Details
-
extractLibrary
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
-