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