|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.virtual.plugins.vfs.helpers.PathTokenizer
public class PathTokenizer
PathTokenizer.
Method Summary | |
---|---|
static java.lang.String |
applyReversePaths(java.lang.String path)
Apply any .. paths in the path param. |
static java.lang.String |
getRemainingPath(java.lang.String[] tokens,
int i)
Get the remaining path from some tokens |
protected static java.lang.String |
getRemainingPath(java.lang.String[] tokens,
int i,
int end)
Get the remaining path from some tokens |
static java.lang.String[] |
getTokens(java.lang.String path)
Get the tokens |
static boolean |
isReverseToken(java.lang.String token)
Is reverse token. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
protected static java.lang.String getRemainingPath(java.lang.String[] tokens, int i, int end)
tokens
- the tokensi
- the current locationend
- the end index
java.lang.IllegalArgumentException
- for null tokens or i is out of rangepublic static java.lang.String[] getTokens(java.lang.String path)
path
- the path
java.lang.IllegalArgumentException
- if the path is null, it is empty or it is a relative pathpublic static java.lang.String getRemainingPath(java.lang.String[] tokens, int i)
tokens
- the tokensi
- the current location
java.lang.IllegalArgumentException
- for null tokens or i is out of rangepublic static java.lang.String applyReversePaths(java.lang.String path) throws java.io.IOException
path
- the path
java.io.IOException
- if reverse path goes over the top pathpublic static boolean isReverseToken(java.lang.String token)
token
- the token to check
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |