|
Changes since the last release |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ebay.sdk.helper.ConsoleUtil
public class ConsoleUtil
An easy interface to read numbers and strings from standard input
Constructor Summary | |
---|---|
ConsoleUtil()
|
Method Summary | |
---|---|
static void |
printPrompt(java.lang.String prompt)
print a prompt on the console |
static double |
readDouble(java.lang.String prompt)
read a floating point number from the console. |
static int |
readInt(java.lang.String prompt)
read an integer from the console. |
static java.lang.String |
readString()
read a string from the console. |
static java.lang.String |
readString(java.lang.String prompt)
read a string from the console. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConsoleUtil()
Method Detail |
---|
public static void printPrompt(java.lang.String prompt)
prompt
- the prompt string to displaypublic static java.lang.String readString() throws java.io.IOException
java.io.IOException
public static java.lang.String readString(java.lang.String prompt) throws java.io.IOException
prompt
- the prompt string to display
java.io.IOException
public static int readInt(java.lang.String prompt) throws java.io.IOException
prompt
- the prompt string to display
java.lang.NumberFormatException
- if bad input
java.io.IOException
public static double readDouble(java.lang.String prompt) throws java.io.IOException
prompt
- the prompt string to display
java.lang.NumberFormatException
- if bad input
java.io.IOException
|
Changes since the last release |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The information contained in this document is proprietary and confidential.
Use of this information and the eBay API requires a Non-Disclosure Agreement (NDA) between the user and eBay Inc.
For information regarding a qualifying NDA, contact Developer Relations:
developer-relations@ebay.com
© 2004-2009 eBay Inc. All rights reserved.