|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.techventus.server.voice.util.ParsingUtil
public abstract class ParsingUtil
Collection of useful html parsing methods
Constructor Summary | |
---|---|
ParsingUtil()
|
Method Summary | |
---|---|
static java.lang.String |
htmlEntitiesDecode(java.lang.String s)
Replaces some speciel htmlEntities with a corresponding String. |
static int[] |
jsonIntArrayToIntArray(gvjava.org.json.JSONArray array)
Json int array to int array. |
static java.util.List<java.lang.Integer> |
jsonIntArrayToIntegerList(gvjava.org.json.JSONObject settingsJSON,
java.util.List<java.lang.Integer> integerList,
java.lang.String key)
Converts a Json Integer array to an ArrayList of Integers. |
static java.lang.String[] |
jsonStringArrayToStringArray(gvjava.org.json.JSONArray array)
Json string array to string array. |
static java.util.List<java.lang.String> |
jsonStringArrayToStringList(gvjava.org.json.JSONObject settingsJSON,
java.util.List<java.lang.String> stringList,
java.lang.String key)
Json string array to string list. |
static java.lang.String |
removeUninterestingParts(java.lang.String text,
java.lang.String startBorder,
java.lang.String endBorder,
boolean includeBorders)
Strips the text from the uninteresting parts before and after the interesting part. |
static gvjava.org.json.JSONArray |
stringListToJsonArray(java.util.List<java.lang.String> stringList)
String list to JSON array. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ParsingUtil()
Method Detail |
---|
public static final java.lang.String removeUninterestingParts(java.lang.String text, java.lang.String startBorder, java.lang.String endBorder, boolean includeBorders)
text
- the textstartBorder
- the start borderendBorder
- the end borderincludeBorders
- the include borders
public static java.lang.String htmlEntitiesDecode(java.lang.String s)
s
- the HTML Entity in String format
public static final int[] jsonIntArrayToIntArray(gvjava.org.json.JSONArray array)
array
- the array
public static final java.lang.String[] jsonStringArrayToStringArray(gvjava.org.json.JSONArray array)
array
- the array
public static final java.util.List<java.lang.String> jsonStringArrayToStringList(gvjava.org.json.JSONObject settingsJSON, java.util.List<java.lang.String> stringList, java.lang.String key) throws gvjava.org.json.JSONException
settingsJSON
- the settings jsonstringList
- the string listkey
- the key
gvjava.org.json.JSONException
- the jSON exceptionpublic static final java.util.List<java.lang.Integer> jsonIntArrayToIntegerList(gvjava.org.json.JSONObject settingsJSON, java.util.List<java.lang.Integer> integerList, java.lang.String key) throws gvjava.org.json.JSONException
settingsJSON
- the settings jsonintegerList
- the integer listkey
- the key corresponding to the JSON formatted integer array
gvjava.org.json.JSONException
- the jSON exceptionpublic static final gvjava.org.json.JSONArray stringListToJsonArray(java.util.List<java.lang.String> stringList) throws gvjava.org.json.JSONException
stringList
- the string list input
gvjava.org.json.JSONException
- the JSON exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |