org.overlord.sramp.shell
Interface ShellCommandReader

All Known Implementing Classes:
AbstractShellCommandReader, ConsoleShellCommandReader, FileShellCommandReader, InteractiveShellCommandReader, StdInShellCommandReader

public interface ShellCommandReader

Interface used to read commands from the user (or some other source, like an input file).

Author:
eric.wittmann@redhat.com

Method Summary
 void close()
          Called by the shell when exiting.
 void open()
          Called to open the shell command reader.
 ShellCommand read()
          Reads the next command from the input source.
 

Method Detail

open

void open()
          throws IOException
Called to open the shell command reader.

Throws:
IOException

read

ShellCommand read()
                  throws Exception
Reads the next command from the input source.

Throws:
Exception

close

void close()
           throws IOException
Called by the shell when exiting.

Throws:
IOException


Copyright © 2011-2013 JBoss, a division of Red Hat. All Rights Reserved.