| |
|
| java.lang.Object net.sf.jasperreports.engine.util.JRValueStringUtils
JRValueStringUtils | public class JRValueStringUtils (Code) | | Utility class used to serialize/deserialize value objects to/from String values.
Specific logic is used to convert to and from Strings values of the following types:
java.lang.String
java.lang.Character
java.lang.Boolean
java.lang.Byte
java.lang.Short
java.lang.Integer
java.lang.Long
java.lang.Float
java.lang.Double
java.math.BigInteger
java.math.BigDecimal
java.util.Date
java.sql.Timestamp
java.sql.Time
Object of other types are serialized and the resulting binary data is converted into a String
using the BASE64 encoding.
author: Lucian Chirita (lucianc@users.sourceforge.net) version: $Id: JRValueStringUtils.java 1355 2006-08-04 14:31:54Z lucianc $ |
Inner Class :protected static interface ValueSerializer | |
Inner Class :protected static class StringSerializer implements ValueSerializer | |
Inner Class :protected static class CharacterSerializer implements ValueSerializer | |
Inner Class :protected static class BooleanSerializer implements ValueSerializer | |
Inner Class :protected static class ByteSerializer implements ValueSerializer | |
Inner Class :protected static class ShortSerializer implements ValueSerializer | |
Inner Class :protected static class IntegerSerializer implements ValueSerializer | |
Inner Class :protected static class LongSerializer implements ValueSerializer | |
Inner Class :protected static class FloatSerializer implements ValueSerializer | |
Inner Class :protected static class DoubleSerializer implements ValueSerializer | |
Inner Class :protected static class BigIntegerSerializer implements ValueSerializer | |
Inner Class :protected static class BigDecimalSerializer implements ValueSerializer | |
Inner Class :protected static class DateSerializer implements ValueSerializer | |
Inner Class :protected static class TimestampSerializer implements ValueSerializer | |
Inner Class :protected static class TimeSerializer implements ValueSerializer | |
Inner Class :protected static class DefaultSerializer implements ValueSerializer | |
deserialize | public static Object deserialize(String valueClass, String data)(Code) | | Converts a String back into a value.
Parameters: valueClass - the type of the value Parameters: data - the String representation of the value the value |
getSerializer | protected static ValueSerializer getSerializer(String valueClass)(Code) | | |
serialize | public static String serialize(String valueClass, Object value)(Code) | | Converts a value into a String representation.
Parameters: valueClass - the type of the value Parameters: value - the value the String representation of the value |
|
|
|