public class Util extends Object
| Constructor and Description |
|---|
Util(Logger logger) |
Util(Logger logger,
boolean debug) |
| Modifier and Type | Method and Description |
|---|---|
static String |
formatException(Exception e)
Formats the given exception in a multiline error message with all causes.
|
byte[] |
send(String host,
String port,
byte[] bytes) |
byte[] |
send(String host,
String port,
String proxyhost,
String proxyport,
byte[] bytes) |
void |
unzip(File target,
byte[] bytes) |
byte[] |
zip(File base,
String[] includedFiles,
String processor,
String in,
String out) |
byte[] |
zip(File base,
String[] includedFiles,
String processor,
String in,
String out,
String options) |
byte[] |
zip(File base,
String[] includedFiles,
Task[] tasks) |
public Util(Logger logger)
logger - public Util(Logger logger, boolean debug)
logger - debug - public byte[] zip(File base, String[] includedFiles, String processor, String in, String out) throws ExecutionException
base - includedFiles - processor - in - out - ExecutionExceptionpublic byte[] zip(File base, String[] includedFiles, String processor, String in, String out, String options) throws ExecutionException
base - includedFiles - processor - in - out - options - ExecutionExceptionpublic byte[] zip(File base, String[] includedFiles, Task[] tasks) throws ExecutionException
base - includedFiles - tasks - ExecutionExceptionpublic byte[] send(String host, String port, byte[] bytes) throws ExecutionException
host - port - bytes - InputStreamExecutionExceptionpublic byte[] send(String host, String port, String proxyhost, String proxyport, byte[] bytes) throws ExecutionException
host - port - proxyhost - proxyport - bytes - InputStreamExecutionExceptionpublic void unzip(File target, byte[] bytes) throws ExecutionException
target - bytes - ExecutionExceptionCopyright © 2013. All Rights Reserved.