org.apache.qpid.tools.utils
Interface CommandParser

All Known Implementing Classes:
SimpleCommandParser

public interface CommandParser


Method Summary
 boolean isBackground()
          True if the currently parsed command has been requested as a background operation
 boolean more()
          If there is more than one command received on the last parse request.
 String[] parse()
          Parses user commands, and groups tokens in the String[] format that all Java main's love.
 

Method Detail

more

boolean more()
If there is more than one command received on the last parse request. Subsequent calls to parse will utilise this input rather than reading new data from the input source

Returns:
boolean

isBackground

boolean isBackground()
True if the currently parsed command has been requested as a background operation

Returns:
boolean

parse

String[] parse()
               throws IOException
Parses user commands, and groups tokens in the String[] format that all Java main's love. If more than one command is provided in one input line then the more() method will return true. A subsequent call to parse() will continue to parse that input line before reading new input.

Returns:
input split in args[] format; null if eof.
Throws:
IOException - if there is a problem reading from the input stream


Licensed to the Apache Software Foundation