public final class JUtil extends Object
Modifier and Type | Method and Description |
---|---|
static String |
absPath(Class<?> base,
String pckgname) |
static void |
copyBinaryResource(String respathin,
File dest) |
static void |
copyResource(Object obj,
String fnm,
File fdest) |
static void |
extractRelativeResource(Class<?> c,
String path,
File dest) |
static String |
getFileResource(String path,
String fnm) |
static String |
getOSArchitecture() |
static String |
getRelativeResource(Class<?> cls,
String path) |
static String |
getRelativeResource(Object obj,
String path) |
static String |
getRelativeResource(String s) |
static String[] |
getResourceList(Class<?> base,
String pckgname,
String ext) |
static String |
getXMLResource(String path) |
static void |
setResourceRoot(Class<?> cls) |
static String |
shortClassName(Object ov) |
static void |
showThreads() |
static void |
unpackJar(File fjar,
File fout) |
static void |
unpackPackage(Class<?> base,
String pkgname,
File dir) |
static void |
visit(ThreadGroup group,
int level) |
public static void setResourceRoot(Class<?> cls)
public static String getRelativeResource(Object obj, String path) throws ContentError
ContentError
public static String getRelativeResource(String s) throws ContentError
ContentError
public static String getRelativeResource(Class<?> cls, String path) throws ContentError
ContentError
public static void copyResource(Object obj, String fnm, File fdest) throws IOException, ContentError
IOException
ContentError
public static String getXMLResource(String path) throws ContentError
ContentError
public static String getFileResource(String path, String fnm) throws ContentError
ContentError
public static void copyBinaryResource(String respathin, File dest) throws FileNotFoundException, IOException
FileNotFoundException
IOException
public static void extractRelativeResource(Class<?> c, String path, File dest) throws FileNotFoundException, IOException
FileNotFoundException
IOException
public static void unpackJar(File fjar, File fout) throws IOException
IOException
public static void unpackPackage(Class<?> base, String pkgname, File dir) throws FileNotFoundException, IOException
FileNotFoundException
IOException
public static void showThreads()
public static void visit(ThreadGroup group, int level)
public static String getOSArchitecture() throws ContentError
ContentError
Copyright © 2019. All rights reserved.