public class RepositoryUtils
extends java.lang.Object
构造器和说明 |
---|
RepositoryUtils() |
限定符和类型 | 方法和说明 |
---|---|
protected static java.lang.String |
getName(java.lang.String path)
获取文件或者路径名称
|
protected static java.lang.String |
getParent(java.lang.String path)
获取父路径
|
static java.lang.String |
getPathSeparator(java.lang.String path)
根据路径获得分隔符
|
protected static byte[] |
inputStreamToByteArray(java.io.InputStream input) |
protected static java.lang.String |
inputStreamToString(java.io.InputStream input) |
protected static java.lang.String |
inputStreamToString(java.io.InputStream input,
java.nio.charset.Charset encoding) |
static boolean |
isWindowsPath(java.lang.String path) |
protected static byte[] |
unZip(byte[] data)
解压zip压缩过的byte[]
|
protected static byte[] |
zip(byte[] data)
zip压缩byte[]
|
protected static java.lang.String getParent(java.lang.String path)
path
- protected static java.lang.String getName(java.lang.String path)
path
- java.io.IOException
protected static byte[] zip(byte[] data)
data
- protected static byte[] unZip(byte[] data)
data
- public static java.lang.String getPathSeparator(java.lang.String path)
path
- public static boolean isWindowsPath(java.lang.String path)
protected static byte[] inputStreamToByteArray(java.io.InputStream input)
protected static java.lang.String inputStreamToString(java.io.InputStream input)
protected static java.lang.String inputStreamToString(java.io.InputStream input, java.nio.charset.Charset encoding) throws java.io.IOException
java.io.IOException