public class Util extends Object
| Constructor and Description |
|---|
Util(Logger logger) |
Util(Logger logger,
boolean debug) |
| Modifier and Type | Method and Description |
|---|---|
Manifest |
convertConfigFileToManifest(de.matrixweb.smaller.config.ConfigFile configFile)
Deprecated.
Use
Manifest.fromConfigFile(ConfigFile) instead |
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,
List<String> includedFiles,
de.matrixweb.smaller.config.ConfigFile configFile) |
public Util(Logger logger)
logger - public Util(Logger logger, boolean debug)
logger - debug - public byte[] zip(File base, List<String> includedFiles, de.matrixweb.smaller.config.ConfigFile configFile) throws ExecutionException
base - includedFiles - configFile - ExecutionException@Deprecated public Manifest convertConfigFileToManifest(de.matrixweb.smaller.config.ConfigFile configFile)
Manifest.fromConfigFile(ConfigFile) insteadconfigFile - Manifestpublic 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 © 2014. All Rights Reserved.