public class Utils extends Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
appendFirst(StringBuilder buffer,
List<String> values,
String seperator)
Simple utility function for adding the first value of the list of strings to the buffer.
|
static Map<String,String[]> |
decode(Map<String,String[]> source,
String encoding)
Decode all the keys and values based on the encoding.
|
static String |
getValue(Map<String,String[]> params,
String key)
Just gets the first value for the key out of the map.
|
static String |
lookForAuthor(Map<String,List<String>> values)
Attempts to extract the author from the multiple fields in an OpenURL and return an author string.
|
static Map<String,String[]> |
split(String source)
This splits the source string up into a map.
|
public static String getValue(Map<String,String[]> params, String key)
params - key - null if it isn't found or is null.public static Map<String,String[]> split(String source)
public static Map<String,String[]> decode(Map<String,String[]> source, String encoding)
public static String lookForAuthor(Map<String,List<String>> values)
public static boolean appendFirst(StringBuilder buffer, List<String> values, String seperator)
buffer - values - seperator - Copyright © 2003-2014 The Sakai Foundation. All Rights Reserved.