|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.bea.portal.tools.resource.ResourceIDBuilder.ParseContext
protected static class ResourceIDBuilder.ParseContext
Context for parsing a resource URN.
Constructor Summary | |
---|---|
protected |
ResourceIDBuilder.ParseContext(String chars, int start, int end) Constructor. |
Method Summary | |
---|---|
void |
append(int ch) Append the given character to the token buffer. |
void |
clearTokenBuffer() Clear the current token buffer. |
String |
getRest() Get the portion of the resource URN from the cursor to the end of the resource URN. |
String |
getToken() Get the current token. |
String |
getTokenAndClear() Get a copy of the current token buffer and clear the current token buffer. |
StringBuilder |
getTokenBuffer() Get a copy of the current token buffer. |
StringBuilder |
getTokenBufferAndClear() Get a copy of the current token buffer and clear the current token buffer. |
boolean |
isAtEnd() Determine if the cursor is at the end of the resource URN. |
int |
read() Read the next character from the resource URN. |
boolean |
read(int ch) Read the next character from the resource URN if it matches the given character. |
void |
reset() Reset the cursor to the first character of the resource URN. |
int |
scanUntil(String delimiterChars) Read the next characters from the resource URN until a character in the given set of delimiter characters is found. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ResourceIDBuilder.ParseContext(String chars, int start, int end)
chars
- characters of the resource URNstart
- the index of the first character in chars
of the resource URNend
- the index one past the last character in chars
of the resource URNMethod Detail |
---|
public final void reset()
public final boolean isAtEnd()
true
if the cursor is at the end of the resource URN and false
otherwisepublic final int read()
-1
if the cursor is at the end of the resource URNpublic final boolean read(int ch)
ch
- the character to matchtrue
if the next character from the resource URN matched the given characterpublic final int scanUntil(String delimiterChars)
delimiterChars
- a string containing the set of delimiter charactersdelimiterChars
of the character from the resource URN that matched or -1
if the end of the resource URN was encountered before a character in the given set of delimiter characters was foundpublic final void append(int ch)
ch
- the character bufferpublic final String getToken()
The current token buffer is not changed.
public final StringBuilder getTokenBuffer()
The current token buffer is not changed.
public final String getTokenAndClear()
public final StringBuilder getTokenBufferAndClear()
public final void clearTokenBuffer()
public final String getRest()
|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2010, Oracle. All rights reserved.