|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hp.hpl.jena.util.Tokenizer
public class Tokenizer
A tokenizer, similar to java's StringTokenizer but allows for quoted character strings which can include other separators.
| Constructor Summary | |
|---|---|
Tokenizer(String str,
String delim,
String literalDelim,
boolean returnDelims)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
hasMoreTokens()
Test if there are more tokens which can be returned. |
static void |
main(String[] args)
|
String |
nextToken()
Return the next token. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Tokenizer(String str,
String delim,
String literalDelim,
boolean returnDelims)
str - the source string to be parseddelim - The set of delimiter charactersliteralDelim - Literal string delimitersreturnDelims - If true then delimiters should be returned as tokens| Method Detail |
|---|
public String nextToken()
NoSuchElementException - if there are no more tokens availablepublic boolean hasMoreTokens()
public static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||