com.sun.tools.xjc.util
Class StringCutter

java.lang.Object
  extended by 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
 

Constructor Detail

StringCutter

public StringCutter(java.lang.String s,
                    boolean ignoreWhitespace)
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()