org.expasy.jpl.commons.app
Interface InteractiveInputScanner

All Known Implementing Classes:
InteractiveInputScannerImpl

public interface InteractiveInputScanner

InteractiveInputScanner interactively reads input stream.

Version:
1.0
Author:
nikitin

Method Summary
 String getDefaultInput()
           
 Pattern getExitPattern()
          Get the pattern matching the interruption
 Pattern getInputPattern()
          Get the pattern matching the input
 String getPrompt()
          Get the command-line prompt
 void setInputStream(InputStream stream)
          Set input stream from where input is find (stdin by default)
 void setOutputStream(OutputStream stream)
          Set output stream to where prompt flushed (stdout by default)
 String waitInput()
          Read input stream
 

Method Detail

getPrompt

String getPrompt()
Get the command-line prompt


getInputPattern

Pattern getInputPattern()
Get the pattern matching the input


getExitPattern

Pattern getExitPattern()
Get the pattern matching the interruption


setInputStream

void setInputStream(InputStream stream)
Set input stream from where input is find (stdin by default)


setOutputStream

void setOutputStream(OutputStream stream)
Set output stream to where prompt flushed (stdout by default)


waitInput

String waitInput()
                 throws IOException
Read input stream

Throws:
IOException

getDefaultInput

String getDefaultInput()


Copyright (c) 2012 Swiss Institute of Bioinformatics. All rights reserved.