|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.portal.common.path.RelativePathParser
Utility class to pull parse a relative path.
Field Summary | |
private int |
current
The current index of parsing. |
static int |
DOWN
The recognized token is down. |
private int |
length
The length value when a down token is recognized. |
static int |
NONE
The parser has reached the end of the stream. |
private int |
offset
The offset value when a down token is recognized. |
private java.lang.String |
path
The path being parsed. |
private int |
previous
The current internal offset. |
private static int |
STATE_BEGIN
|
private static int |
STATE_CHAR
|
private static int |
STATE_DOT
|
private static int |
STATE_DOT_DOT
|
static int |
UP
The recognized token is up. |
Constructor Summary | |
RelativePathParser(java.lang.String path)
|
Method Summary | |
int |
getLength()
|
int |
getOffset()
|
int |
next()
Read the next token available. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final int STATE_BEGIN
private static final int STATE_DOT
private static final int STATE_DOT_DOT
private static final int STATE_CHAR
public static final int NONE
getOffset()
and
getLength()
is undertermined.
public static final int UP
getOffset()
and
getLength()
is undertermined.
public static final int DOWN
getOffset()
and
getLength()
determine the token string value.
private final java.lang.String path
private int current
private int previous
private int offset
private int length
Constructor Detail |
public RelativePathParser(java.lang.String path)
Method Detail |
public int next()
public int getOffset()
public int getLength()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |