public abstract class PluginBaseUtils
extends java.lang.Object
构造器和说明 |
---|
PluginBaseUtils() |
限定符和类型 | 方法和说明 |
---|---|
static void |
addToJar(ZipFile zipFile,
java.lang.String path,
java.io.File file)
将文件file放到jarFile的path下,path中不包含文件名
|
static void |
deleteFile(java.io.File tempClassFile) |
static byte[] |
getBytes(ZipFile zipFile,
FileHeader fileHeader) |
static byte[] |
getBytes(ZipFile zipFile,
java.lang.String fileName) |
static byte[] |
inputStream2Bytes(java.io.InputStream in) |
static java.lang.String |
pathJoin(java.lang.String... nodes)
将路径节点数组用路径分隔符"/"连接起来
|
static void |
removeFromJar(ZipFile zipFile,
FileHeader fileHeader)
将jarFile的path删除
|
static void |
unzip(java.io.File file,
java.lang.String destination)
解压文件
|
static void |
writeActive(boolean active,
java.io.File xmlFile) |
public static void writeActive(boolean active, java.io.File xmlFile)
public static java.lang.String pathJoin(java.lang.String... nodes)
nodes
- 路径节点数组public static byte[] inputStream2Bytes(java.io.InputStream in)
public static void unzip(java.io.File file, java.lang.String destination) throws ZipException
ZipException
public static void addToJar(ZipFile zipFile, java.lang.String path, java.io.File file) throws ZipException
ZipException
public static void removeFromJar(ZipFile zipFile, FileHeader fileHeader) throws ZipException
ZipException
public static byte[] getBytes(ZipFile zipFile, FileHeader fileHeader) throws java.lang.Exception
java.lang.Exception
public static byte[] getBytes(ZipFile zipFile, java.lang.String fileName) throws java.lang.Exception
java.lang.Exception
public static void deleteFile(java.io.File tempClassFile)