|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.adobe.livecycle.rca.common.utils.StringUtils
public class StringUtils
This class provide helper utilities for string conversion and manipulation
Constructor Summary | |
---|---|
StringUtils()
|
Method Summary | |
---|---|
Map |
arrayToMap(Object[][] data,
Class keyClass,
Class valueClass)
Converts an array to map |
static Serializable |
bytesToSerializable(byte[] data)
Deserialize a byte array |
static byte[] |
documentToBytes(com.adobe.idp.Document document)
Converts an Document object to byte array |
static Date |
getDateFromString(String dateString)
|
static String |
getDateString(Date date)
|
static String |
listToString(List input)
|
static Locale |
resolveLocale(String name)
Create Locale object from the string |
static byte[] |
serializableToBytes(Serializable data)
convert Serializable object to byte array |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringUtils()
Method Detail |
---|
public static Locale resolveLocale(String name)
name
- name of the location like en_US
public static byte[] documentToBytes(com.adobe.idp.Document document) throws IOException
Document
object to byte array
document
- document object
IOException
- if there is any error reading the byte stream from documentpublic static byte[] serializableToBytes(Serializable data) throws IOException
Serializable
object to byte array
data
- Serializable
object
IOException
- if there is any error reading the input datapublic static Serializable bytesToSerializable(byte[] data) throws IOException, ClassNotFoundException
data
- byte array
Serializable
object
IOException
- if there is any error reading/writing to the stream
ClassNotFoundException
- if the class represented in the serialized data is not found in the class pathpublic Map arrayToMap(Object[][] data, Class keyClass, Class valueClass)
data
- Array of objectskeyClass
- Class of Type KvalueClass
- Class of Type V
public static String listToString(List input)
public static Date getDateFromString(String dateString)
public static String getDateString(Date date)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |