public abstract class Builder extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
BOOT_INF_CLASSES |
static String |
BOOT_INF_LIB |
static String |
CRLF |
static String |
DEFAULT_ALGORITHM |
static int |
DEFAULT_IVSIZE |
static int |
DEFAULT_KEYSIZE |
static int |
FLAG_DANGER |
static String |
META_INF_MANIFEST |
static int |
MODE_DANGER |
static int |
MODE_NORMAL |
static String |
WEB_INF_CLASSES |
static String |
WEB_INF_LIB |
static String |
XJAR_ALGORITHM |
static String |
XJAR_ALGORITHM_KEY |
static String |
XJAR_INF_DIR |
static String |
XJAR_INF_IDX |
static String |
XJAR_IVSIZE |
static String |
XJAR_IVSIZE_KEY |
static String |
XJAR_KEY_ALGORITHM |
static String |
XJAR_KEY_HOLD |
static String |
XJAR_KEY_IVSIZE |
static String |
XJAR_KEY_KEYSIZE |
static String |
XJAR_KEY_PASSWORD |
static String |
XJAR_KEYFILE |
static String |
XJAR_KEYSIZE |
static String |
XJAR_KEYSIZE_KEY |
static String |
XJAR_PASSWORD |
static String |
XJAR_PASSWORD_KEY |
static String |
XJAR_SRC_DIR |
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
static String |
absolutize(String path) |
static <E> AllComplex<E> |
all()
创建多个子过滤器AND连接的混合过滤器
|
static <E> AllComplex<E> |
all(Collection<? extends Complex<E>> filters)
创建多个子过滤器AND连接的混合过滤器
|
static <E> AllComplex<E> |
and()
创建多个子过滤器AND连接的混合过滤器
|
static <E> AllComplex<E> |
and(Collection<? extends Complex<E>> filters)
创建多个子过滤器AND连接的混合过滤器
|
static <E> AnyComplex<E> |
any()
创建多个子过滤器OR连接的混合过滤器
|
static <E> AnyComplex<E> |
any(Collection<? extends Complex<E>> filters)
创建多个子过滤器OR连接的混合过滤器
|
static void |
close(Closeable closeable)
关闭资源,等效于XKit.close(closeable, true);
|
static void |
close(Closeable closeable,
boolean quietly)
关闭资源
|
static boolean |
delete(File file)
删除文件,如果是目录将不递归删除子文件或目录,等效于delete(file, false);
|
static boolean |
delete(File file,
boolean recursively)
删除文件,如果是目录将递归删除子文件或目录
|
static boolean |
isAbsolute(String path) |
static boolean |
isRelative(String path) |
static Key |
key(String password)
根据密码生成密钥
|
static Key |
key(String algorithm,
int keysize,
int ivsize,
String password)
根据密码生成密钥
|
static Key |
key(String algorithm,
int keysize,
String password)
根据密码生成密钥
|
static Key |
key(String algorithm,
String password)
根据密码生成密钥
|
static String |
normalize(String path) |
static <E> Complex<E> |
not(Complex<E> filter)
创建非门逻辑运算过滤器,实际上就是将委派过滤器的过滤结果取反
|
static <E> AnyComplex<E> |
or()
创建多个子过滤器OR连接的混合过滤器
|
static <E> AnyComplex<E> |
or(Collection<? extends Complex<E>> filters)
创建多个子过滤器OR连接的混合过滤器
|
static byte[] |
readln(InputStream in)
从输入流中读取一行字节码
|
static void |
removeKey(Attributes attributes) |
static void |
retainKey(Key key,
Attributes attributes) |
static long |
transfer(InputStream in,
File file)
输入流传输到文件
|
static long |
transfer(InputStream in,
OutputStream out)
输入流传输到输出流
|
static long |
transfer(Reader reader,
File file)
reader传输到文件
|
static long |
transfer(Reader reader,
Writer writer)
reader传输到writer
|
static void |
writeln(OutputStream out,
byte[] line)
往输出流中写入一行字节码
|
public static final String WEB_INF_CLASSES
public static final String WEB_INF_LIB
public static final String META_INF_MANIFEST
public static final String XJAR_SRC_DIR
public static final String XJAR_INF_DIR
public static final String XJAR_INF_IDX
public static final String XJAR_ALGORITHM
public static final String XJAR_KEYSIZE
public static final String XJAR_IVSIZE
public static final String XJAR_PASSWORD
public static final String XJAR_KEYFILE
public static final String XJAR_ALGORITHM_KEY
public static final String XJAR_KEYSIZE_KEY
public static final String XJAR_IVSIZE_KEY
public static final String XJAR_PASSWORD_KEY
public static final String XJAR_KEY_ALGORITHM
public static final String XJAR_KEY_KEYSIZE
public static final String XJAR_KEY_IVSIZE
public static final String XJAR_KEY_PASSWORD
public static final String XJAR_KEY_HOLD
public static final String DEFAULT_ALGORITHM
public static String BOOT_INF_CLASSES
public static String BOOT_INF_LIB
public static String CRLF
public static int DEFAULT_KEYSIZE
public static int DEFAULT_IVSIZE
public static int FLAG_DANGER
public static int MODE_DANGER
public static int MODE_NORMAL
public static byte[] readln(InputStream in) throws IOException
in - 输入流IOException - I/O 异常public static void writeln(OutputStream out, byte[] line) throws IOException
out - 输出流line - 一行字节码IOException - I/O 异常public static void close(Closeable closeable)
closeable - 资源public static void close(Closeable closeable, boolean quietly) throws IOException
closeable - 资源quietly - 是否安静关闭,即捕获到关闭异常时是否忽略IOException - 当quietly == false, 时捕获到的I/O异常将会往外抛public static long transfer(InputStream in, OutputStream out) throws IOException
in - 输入流out - 输出流IOException - I/O 异常public static long transfer(Reader reader, Writer writer) throws IOException
reader - readerwriter - writerIOException - I/O 异常public static long transfer(InputStream in, File file) throws IOException
in - 输入流file - 文件IOException - I/O 异常public static long transfer(Reader reader, File file) throws IOException
reader - readerfile - 文件IOException - I/O 异常public static boolean delete(File file)
file - 文件/目录public static boolean delete(File file, boolean recursively)
file - 文件/目录recursively - 递归public static Key key(String password) throws NoSuchAlgorithmException
password - 密码NoSuchAlgorithmException - 没有该密钥算法public static Key key(String algorithm, String password) throws NoSuchAlgorithmException
algorithm - 密钥算法password - 密码NoSuchAlgorithmException - 没有该密钥算法public static Key key(String algorithm, int keysize, String password) throws NoSuchAlgorithmException
algorithm - 密钥算法keysize - 密钥长度password - 密码NoSuchAlgorithmException - 没有该密钥算法public static Key key(String algorithm, int keysize, int ivsize, String password) throws NoSuchAlgorithmException
algorithm - 密钥算法keysize - 密钥长度ivsize - 向量长度password - 密码NoSuchAlgorithmException - 没有该密钥算法public static void retainKey(Key key, Attributes attributes)
public static void removeKey(Attributes attributes)
public static <E> AllComplex<E> all()
E - 对象public static <E> AllComplex<E> all(Collection<? extends Complex<E>> filters)
E - 对象filters - 子过滤器public static <E> AllComplex<E> and()
E - 对象public static <E> AllComplex<E> and(Collection<? extends Complex<E>> filters)
E - 对象filters - 子过滤器public static <E> AnyComplex<E> any()
E - 对象public static <E> AnyComplex<E> any(Collection<? extends Complex<E>> filters)
E - 对象filters - 子过滤器public static <E> AnyComplex<E> or()
E - 对象public static <E> AnyComplex<E> or(Collection<? extends Complex<E>> filters)
E - 对象filters - 子过滤器public static <E> Complex<E> not(Complex<E> filter)
E - 对象E - 记录类型filter - 委派过滤器public static boolean isRelative(String path)
public static boolean isAbsolute(String path)
Copyright © 2019. All rights reserved.