Package es.bsc.dataclay.util
Class JarUtils
- java.lang.Object
-
- es.bsc.dataclay.util.JarUtils
-
public final class JarUtils extends Object
Jar utilites.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<String>getAllClassesInJar(String jarPath)Get all class names in JARstatic byte[]readJar(String path)Read Jar file into byte arraystatic voidwriteJar(String jarPath, byte[] jarBytes)Write jar into disk from bytes
-
-
-
Method Detail
-
readJar
public static byte[] readJar(String path)
Read Jar file into byte array- Parameters:
path- Path of the Jar file- Returns:
- Byte array representation of the Jar file
-
writeJar
public static void writeJar(String jarPath, byte[] jarBytes)
Write jar into disk from bytes- Parameters:
jarPath- Path of jarjarBytes- Bytes of jar
-
-