Package 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- Author:
- Kohsuke Kawaguchi
-
-
Constructor Summary
Constructors Constructor Description StringCutter(java.lang.String s, boolean ignoreWhitespace)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
-
-
-
Method Detail
-
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()
-
-