org.vafer.jdeb.utils
Class Utils
java.lang.Object
org.vafer.jdeb.utils.Utils
public final class Utils
- extends java.lang.Object
Simple utils functions.
ATTENTION: don't use outside of jdeb
- Author:
- tcurdt
|
Constructor Summary |
Utils()
|
|
Method Summary |
static int |
copy(java.io.InputStream pInput,
java.io.OutputStream pOutput)
|
static java.lang.String |
replaceVariables(VariableResolver pResolver,
java.lang.String pExpression,
java.lang.String pOpen,
java.lang.String pClose)
Substitute the variables in the given expression with the
values from the resolver |
static java.lang.String |
stripLeadingSlash(java.lang.String s)
|
static java.lang.String |
stripPath(int p,
java.lang.String s)
|
static java.lang.String |
toHex(byte[] pBytes)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Utils
public Utils()
copy
public static int copy(java.io.InputStream pInput,
java.io.OutputStream pOutput)
throws java.io.IOException
- Throws:
java.io.IOException
toHex
public static java.lang.String toHex(byte[] pBytes)
stripPath
public static java.lang.String stripPath(int p,
java.lang.String s)
stripLeadingSlash
public static java.lang.String stripLeadingSlash(java.lang.String s)
replaceVariables
public static java.lang.String replaceVariables(VariableResolver pResolver,
java.lang.String pExpression,
java.lang.String pOpen,
java.lang.String pClose)
throws java.text.ParseException
- Substitute the variables in the given expression with the
values from the resolver
- Parameters:
pVariables - pExpression -
- Returns:
-
- Throws:
java.text.ParseException
Copyright © 2007. All Rights Reserved.