com.sun.tools.xjc.util
Class StringCutter

java.lang.Object
  extended by com.sun.tools.xjc.util.StringCutter

public final class StringCutter
extends Object

Utility class to parse a string


Constructor Summary
StringCutter(String s, boolean ignoreWhitespace)
           
 
Method Summary
 int length()
           
 String next(String regexp)
           
 char peek()
           
 void skip(String regexp)
           
 String until(String regexp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringCutter

public StringCutter(String s,
                    boolean ignoreWhitespace)
Method Detail

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()