|
BeanIO 2.0.4 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.beanio.internal.util.JsonUtil
public class JsonUtil
Utility class for working with JSON formatted values.
| Method Summary | |
|---|---|
static Boolean |
toBoolean(String text)
Parses a JSON formatted boolean from text. |
static Number |
toNumber(String text)
Parses a JSON formatted number from text. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Boolean toBoolean(String text)
throws IllegalArgumentException
text - the text to parse
Boolean
IllegalArgumentException - if the text is not a valid boolean
public static Number toNumber(String text)
throws NumberFormatException
text - the text to parse
Number
NumberFormatException - if the text is not a valid number
|
BeanIO 2.0.4 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||