dbxml.util
Class IOUtils

java.lang.Object
  |
  +--dbxml.util.IOUtils

public class IOUtils
extends java.lang.Object

Bunch of io utility methods.

Author:
Ramnivas Laddad

Constructor Summary
IOUtils()
           
 
Method Summary
static java.lang.String readInput(java.lang.String prompt)
          Read input from stdin.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IOUtils

public IOUtils()
Method Detail

readInput

public static java.lang.String readInput(java.lang.String prompt)
                                  throws java.io.IOException
Read input from stdin. Propmts the user with given prompt string and reads the user input from stdin till user hits "Enter".
Parameters:
prompt - prompt string that will be presented to the user
Returns:
string typed by user till he/she hits the "Enter"
Throws:
java.io.IOException - if an exception occurs while reading stdin