|
||||||||||
| 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 . |
static String |
getRemainingPath(List<String> tokens,
int i)
Get the remaining path from some tokens |
protected static String |
getRemainingPath(List<String> tokens,
int i,
int end)
Get the remaining path from some tokens |
static List<String> |
getTokens(String path)
Get the tokens that comprise this path. |
static boolean |
isCurrentToken(String token)
Is current token. |
static boolean |
isReverseToken(String token)
Is reverse token. |
static void |
setErrorOnSuspiciousTokens(boolean errorOnSuspiciousTokens)
Set errorOnSuspiciousTokens flag. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
protected static String getRemainingPath(List<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 List<String> getTokens(String path)
path - the path
IllegalArgumentException - if the path is null, or if this class is configured to reject
so-called "suspicious" tokens (files that start with "." which are not one of the two special
directories "." or "..")
public static String getRemainingPath(List<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
public static void setErrorOnSuspiciousTokens(boolean errorOnSuspiciousTokens)
errorOnSuspiciousTokens - the errorOnSuspiciousTokens flag
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||