Class CommandTokenizer


  • public class CommandTokenizer
    extends java.lang.Object
    emulates StringTokenizer
    Author:
    joseph mcverry
    • 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
    • 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