Class CommandTokenizer


  • public class CommandTokenizer
    extends java.lang.Object
    emulates StringTokenizer
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) int len  
      (package private) int pos  
      (package private) java.lang.String workString  
    • Constructor Summary

      Constructors 
      Constructor Description
      CommandTokenizer​(java.lang.String inString)
      constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasMoreTokens()
      any more tokens in String
      java.lang.String nextToken()
      returns the next token, this handles spaces and quotes
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • workString

        java.lang.String workString
      • pos

        int pos
      • len

        int len
    • Constructor Detail

      • CommandTokenizer

        public CommandTokenizer​(java.lang.String inString)
        constructor
        Parameters:
        inString - the string to parse
    • Method Detail

      • hasMoreTokens

        public boolean hasMoreTokens()
                              throws WrappedException
        any more tokens in String
        Returns:
        true if there are any more tokens
        Throws:
        WrappedException - - internally handled error
      • nextToken

        public java.lang.String nextToken()
                                   throws WrappedException
        returns the next token, this handles spaces and quotes
        Returns:
        a string
        Throws:
        WrappedException - - internally handled error