|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.entry.NameTokenizer
public class NameTokenizer
Tokenizer used for reading TDI attribute names.
Constructor Summary | |
---|---|
NameTokenizer()
|
Method Summary | |
---|---|
protected NameTokenizer |
clone()
|
int |
getAfterEndIndex()
Get the index of the after-end position. |
int |
getBeforeStartIndex()
Get the index of the before-start position. |
int |
getCurrentPosition()
Returns the current tokenizer position. |
int |
getNextSeparatorPosition(char separator)
Returns the position of the next separator. |
String |
getNextToken(char separator)
Returns the string from the current position to the next separator. |
int |
getPreviousSeparatorPosition(char separator)
Returns the position of the previous separator. |
String |
getPreviousToken(char separator)
Returns the string from the current position to the previous separator. |
ListIterator<String> |
listIterator(char separator)
Creates a ListIterator for easier work with the Tokenizer.. |
void |
setEscapeChar(char escapeChar)
Changes the used escape character. |
void |
setName(String name)
Sets the attribute name to be parsed. |
void |
setName(String name,
boolean start)
Sets the attribute name to be parsed. |
void |
setName(String name,
int position)
Sets the attribute name to be parsed. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NameTokenizer()
Method Detail |
---|
public void setName(String name)
name
- attribute name.public void setName(String name, boolean start)
name
- attribute name.start
- whether the tokenizer should be position at the name start or
at its end.public void setName(String name, int position)
name
- attribute name.position
- starting position.public void setEscapeChar(char escapeChar)
escapeChar
- escape character.public int getCurrentPosition()
public int getNextSeparatorPosition(char separator)
separator
- the separator.
public String getNextToken(char separator)
separator
- the separator.
public int getPreviousSeparatorPosition(char separator)
separator
- the separator.
public String getPreviousToken(char separator)
separator
- the separator.
public final int getBeforeStartIndex()
public final int getAfterEndIndex()
public ListIterator<String> listIterator(char separator)
ListIterator
for easier work with the Tokenizer..
separator
- the separator to be used by the Iterator.
ListIterator
.protected NameTokenizer clone()
clone
in class Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |