Methods Summary |
---|
public void | close()Closes the underlying input stream.
mInputStr.close();
|
public int | getChar()Returns a Character representation of users response.
return buffRead.read();
|
public java.lang.String | getLine()Returns a String representation of users response.
Could be next line in the stream provided.
//InputStreamReader inStrReader = new InputStreamReader(mInputStr);
//BufferedReader buffRead = new BufferedReader(inStrReader);
return buffRead.readLine();
|
public boolean | isInteractive()Returns a boolean which tells the program is in interactive mode.
return mInteractive;
|
public void | setEncoding(java.lang.String sEncoding)Set the character encoding
// buffRead.close();
InputStreamReader inStrReader = new InputStreamReader(
mInputStr, sEncoding);
buffRead = new BufferedReader(inStrReader);
// inStrReader.close();
|