|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apertereports.common.utils.TextUtils
public final class TextUtils
Utility methods for converting Vaadin value to a simple string.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apertereports.common.ARConstants |
|---|
ARConstants.BooleanValues, ARConstants.ErrorCode, ARConstants.InputTypes, ARConstants.Keys, ARConstants.Parameter, ARConstants.ReportMimeType, ARConstants.ReportType |
| Field Summary |
|---|
| Fields inherited from interface org.apertereports.common.ARConstants |
|---|
CACHE_MANAGER_CHECK_INTERVAL, DATETIME_PATTERN, FIELD_DELIMITER, FILE_DATE_FORMAT, FILE_PREFIX, JMS_PROPERTY_REPORT_ORDER_ID, JNDI_DEFAULT_CONTEXT, JNDI_JMS_CONNECTION_FACTORY_ID, JNDI_JMS_GENERATE_REPORT_QUEUE_ID, JNDI_JMS_PROCESS_REPORT_QUEUE_ID, RECORD_DELIMITER, SUBREPORT_MAP_PARAMETER_NAME, WS_NAMESPACE, WS_REQUEST_LOCAL_PART |
| Method Summary | |
|---|---|
static String |
encodeObjectToSQL(Object rawValue)
Encodes a value to a string so that an SQL query can use it. |
static Object |
encodeSQLToObject(Class<?> type,
String value)
Decodes a previously encoded value to its base form. |
static String |
getCommaSeparatedString(List<Object> list)
Returns comma-separated string representation of objects in the list |
static String |
readTestFileToString(InputStream s)
Reads a text file from an InputStream to string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String encodeObjectToSQL(Object rawValue)
rawValue - given value
public static String readTestFileToString(InputStream s)
throws IOException
InputStream to string.
s - an InputStream
IOException - on read error
public static Object encodeSQLToObject(Class<?> type,
String value)
throws ParseException
type - The type of the value.value - The input string
ParseException - On date format errorpublic static String getCommaSeparatedString(List<Object> list)
list - List of objects
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||