|
||||||||||
| 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 String |
applySpecialPaths(String path)
Apply any . or .. paths in the path param. |
static String |
getRemainingPath(String[] tokens,
int i)
Get the remaining path from some tokens |
protected static String |
getRemainingPath(String[] tokens,
int i,
int end)
Get the remaining path from some tokens |
static String[] |
getTokens(String path)
Get the tokens |
static boolean |
isCurrentToken(String token)
Is current token. |
static boolean |
isReverseToken(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 String getRemainingPath(String[] tokens,
int i,
int end)
tokens - the tokensi - the current locationend - the end index
IllegalArgumentException - for null tokens or i is out of rangepublic static String[] getTokens(String path)
path - the path
IllegalArgumentException - if the path is null, it is empty or it is a relative path
public static String getRemainingPath(String[] tokens,
int i)
tokens - the tokensi - the current location
IllegalArgumentException - for null tokens or i is out of range
public static String applySpecialPaths(String path)
throws IOException
path - the path
IOException - if reverse path goes over the top pathpublic static boolean isCurrentToken(String token)
token - the token to check
public static boolean isReverseToken(String token)
token - the token to check
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||