public final class Utils extends Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static int |
copy(InputStream pInput,
OutputStream pOutput) |
static String |
replaceVariables(VariableResolver pResolver,
String pExpression,
String pOpen,
String pClose)
Substitute the variables in the given expression with the
values from the resolver
|
static String |
stripLeadingSlash(String s) |
static String |
stripPath(int p,
String s) |
static String |
toHex(byte[] bytes) |
static byte[] |
toUnixLineEndings(InputStream input)
Replaces new line delimiters in the input stream with the Unix line feed.
|
public static int copy(InputStream pInput, OutputStream pOutput) throws IOException
IOExceptionpublic static String toHex(byte[] bytes)
public static String replaceVariables(VariableResolver pResolver, String pExpression, String pOpen, String pClose)
pResolver - pExpression - public static byte[] toUnixLineEndings(InputStream input) throws IOException
input - IOExceptionCopyright © 2013. All Rights Reserved.