summaryrefslogtreecommitdiff
path: root/odk/examples/DevelopersGuide/OfficeDev/DisableCommands
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2006-03-15 08:28:40 +0000
committerVladimir Glazounov <vg@openoffice.org>2006-03-15 08:28:40 +0000
commita88abc3aa3132bc7b3c904b2143a87be6bbfdc8c (patch)
tree0ed0d259387dbcc2cb5a0ee38447fbfad7d805b9 /odk/examples/DevelopersGuide/OfficeDev/DisableCommands
parentb4b2e13b8f99b335f85cf64693ca490c24796662 (diff)
INTEGRATION: CWS jsc3 (1.6.56); FILE MERGED
2006/02/23 14:55:29 jsc 1.6.56.1: #i62481# check user input
Diffstat (limited to 'odk/examples/DevelopersGuide/OfficeDev/DisableCommands')
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/DisableCommands/DisableCommandsTest.java13
1 files changed, 7 insertions, 6 deletions
diff --git a/odk/examples/DevelopersGuide/OfficeDev/DisableCommands/DisableCommandsTest.java b/odk/examples/DevelopersGuide/OfficeDev/DisableCommands/DisableCommandsTest.java
index 1680adcd206b..97d292b143bf 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/DisableCommands/DisableCommandsTest.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/DisableCommands/DisableCommandsTest.java
@@ -2,9 +2,9 @@
*
* $RCSfile: DisableCommandsTest.java,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: kz $ $Date: 2005-03-01 12:09:29 $
+ * last change: $Author: vg $ $Date: 2006-03-15 09:28:40 $
*
* The Contents of this file are made available subject to the terms of
* the BSD license.
@@ -192,10 +192,11 @@ public class DisableCommandsTest extends java.lang.Object {
* Wait for user input -> until the user press 'return'
*/
private static void waitForUserInput() throws java.io.IOException {
- char c = 'X';
- do{
- c = (char) System.in.read();
- }while ((c != 13) && (c != 10));
+
+ java.io.BufferedReader reader
+ = new java.io.BufferedReader(new java.io.InputStreamReader(System.in));
+
+ reader.read();
}
/**