com.sun.tools.xjc.util
Class StringCutter
java.lang.Object
com.sun.tools.xjc.util.StringCutter
public final class StringCutter
- extends java.lang.Object
Utility class to parse a string
Constructor Summary |
StringCutter(java.lang.String s,
boolean ignoreWhitespace)
|
Method Summary |
int |
length()
|
java.lang.String |
next(java.lang.String regexp)
|
char |
peek()
|
void |
skip(java.lang.String regexp)
|
java.lang.String |
until(java.lang.String regexp)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringCutter
public StringCutter(java.lang.String s,
boolean ignoreWhitespace)
skip
public void skip(java.lang.String regexp)
throws java.text.ParseException
- Throws:
java.text.ParseException
next
public java.lang.String next(java.lang.String regexp)
throws java.text.ParseException
- Throws:
java.text.ParseException
until
public java.lang.String until(java.lang.String regexp)
throws java.text.ParseException
- Throws:
java.text.ParseException
peek
public char peek()
length
public int length()