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