public class JUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) static java.lang.String |
fileSep |
(package private) static java.lang.Class |
rootClass |
(package private) static java.lang.String |
rootPath |
Constructor and Description |
---|
JUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
copyBinaryResource(Logger loggerin,
java.lang.String respathin,
java.io.File dest) |
static void |
extractJarResources(java.lang.Object base,
java.lang.String jarName,
java.io.File destDirectory) |
static void |
extractMissingResources(java.lang.String path,
java.io.File dir) |
static void |
extractResources(Logger logger,
java.lang.String pathin,
java.io.File dest) |
static java.lang.String |
getFileResource(java.lang.String path,
java.lang.String fnm) |
static java.lang.String |
getRelativeResource(Logger logger,
java.lang.Class cls,
java.lang.String path) |
static java.lang.String |
getRelativeResource(java.lang.Object obj,
java.lang.String path) |
static java.lang.String |
getRelativeResource(java.lang.String s) |
static java.lang.String |
getResource(java.lang.String pathin) |
static java.lang.String |
getXMLResource(java.lang.String path) |
static java.lang.Object |
newInstance(java.lang.String sin) |
private static java.lang.String |
readInputStream(Logger logger,
java.io.InputStream fis) |
static java.lang.String |
shortClassName(java.lang.Object ov) |
static void |
unpackJar(java.io.File fjar,
java.io.File fout) |
static java.lang.Class rootClass
static java.lang.String fileSep
static java.lang.String rootPath
public static java.lang.String getRelativeResource(java.lang.Object obj, java.lang.String path)
public static java.lang.String getRelativeResource(java.lang.String s)
public static java.lang.String getRelativeResource(Logger logger, java.lang.Class cls, java.lang.String path)
public static java.lang.String getXMLResource(java.lang.String path)
public static java.lang.String getFileResource(java.lang.String path, java.lang.String fnm)
public static java.lang.String getResource(java.lang.String pathin)
private static java.lang.String readInputStream(Logger logger, java.io.InputStream fis) throws java.lang.NullPointerException, java.io.IOException
java.lang.NullPointerException
java.io.IOException
public static void copyBinaryResource(Logger loggerin, java.lang.String respathin, java.io.File dest)
public static void extractResources(Logger logger, java.lang.String pathin, java.io.File dest)
public static java.lang.Object newInstance(java.lang.String sin)
public static java.lang.String shortClassName(java.lang.Object ov)
public static void extractMissingResources(java.lang.String path, java.io.File dir)
public static void unpackJar(java.io.File fjar, java.io.File fout)
public static void extractJarResources(java.lang.Object base, java.lang.String jarName, java.io.File destDirectory)
Copyright © 2013. All Rights Reserved.