public class DataSourceUtil extends Object
Constructor and Description |
---|
DataSourceUtil() |
Modifier and Type | Method and Description |
---|---|
static List |
getSubList(List sourceList,
String pStartIndex,
String pMaxItems,
int pDefaultMax)
Gets a sub list of a given list.
|
Datasource |
parseDatasourceJSON(String pJSONStr)
Parses a datasource JSON string and createa a
Datasource bean |
public Datasource parseDatasourceJSON(String pJSONStr) throws IOException
Datasource
beanpJSONStr
- the datasource JSON stringDatasource
objectIOException
- if any error occurs when parsing the JSON string to Datasource
objectpublic static List getSubList(List sourceList, String pStartIndex, String pMaxItems, int pDefaultMax)
sourceList
- The source list form where the sub list will be created.pStartIndex
- Sub list will start from this index of the source listpMaxItems
- How many items of source list will be present in the sub list.pDefaultMax
- By default how many items of source list will be presend in sub list.© 1998- 2018 Escenic AS