|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.billpringle.utils.WrpKeyboard
public class WrpKeyboard
This class provides the ability to perform a readLine operation for a Java console application.
![]() |
![]() |
Unless noted otherwise, all materials available for download from my site are copyrighted by Bill Pringle, and are licensed under a Creative Commons License. |
Field Summary | |
---|---|
private java.io.BufferedReader |
kbd
maps to System.in, the user's keyboard |
Constructor Summary | |
---|---|
WrpKeyboard()
Default (and only) constructor. |
Method Summary | |
---|---|
java.io.BufferedReader |
getBufferedReader()
Return the buffered reader. |
static void |
main(java.lang.String[] args)
Test driver for the class. |
java.lang.String |
readLine()
Read a line from the user's keyboard. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.io.BufferedReader kbd
Constructor Detail |
---|
public WrpKeyboard()
This method opens the System.in input stream as a buffered reader, allowing the user to perform a readLine operation on the keyboard.
Method Detail |
---|
public java.lang.String readLine() throws java.io.IOException
java.io.IOException
public java.io.BufferedReader getBufferedReader()
This method can be used to obtain the buffered reader. The client can then perform whatever operations are desired.
public static void main(java.lang.String[] args)
args
- not used
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |