|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jasperreports.engine.util.JRValueStringUtils
public final class JRValueStringUtils
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.Stringjava.lang.Characterjava.lang.Booleanjava.lang.Bytejava.lang.Shortjava.lang.Integerjava.lang.Longjava.lang.Floatjava.lang.Doublejava.math.BigIntegerjava.math.BigDecimaljava.util.Datejava.sql.Timestampjava.sql.TimeObject of other types are serialized and the resulting binary data is converted into a String using the BASE64 encoding.
| Nested Class Summary | |
|---|---|
protected static class |
JRValueStringUtils.BigDecimalSerializer
|
protected static class |
JRValueStringUtils.BigIntegerSerializer
|
protected static class |
JRValueStringUtils.BooleanSerializer
|
protected static class |
JRValueStringUtils.ByteSerializer
|
protected static class |
JRValueStringUtils.CharacterSerializer
|
protected static class |
JRValueStringUtils.DateSerializer
|
protected static class |
JRValueStringUtils.DefaultSerializer
|
protected static class |
JRValueStringUtils.DoubleSerializer
|
protected static class |
JRValueStringUtils.FloatSerializer
|
protected static class |
JRValueStringUtils.IntegerSerializer
|
protected static class |
JRValueStringUtils.LongSerializer
|
protected static class |
JRValueStringUtils.ShortSerializer
|
protected static class |
JRValueStringUtils.StringSerializer
|
protected static class |
JRValueStringUtils.TimeSerializer
|
protected static class |
JRValueStringUtils.TimestampSerializer
|
protected static interface |
JRValueStringUtils.ValueSerializer
|
| Method Summary | |
|---|---|
static Object |
deserialize(String valueClass,
String data)
Converts a String back into a value. |
protected static JRValueStringUtils.ValueSerializer |
getSerializer(String valueClass)
|
static boolean |
hasSerializer(String valueClass)
Determines if there's a built-in serializer for the value type. |
static String |
serialize(String valueClass,
Object value)
Converts a value into a String representation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean hasSerializer(String valueClass)
valueClass - the value type
public static String serialize(String valueClass,
Object value)
valueClass - the type of the valuevalue - the value
public static Object deserialize(String valueClass,
String data)
valueClass - the type of the valuedata - the String representation of the value
protected static JRValueStringUtils.ValueSerializer getSerializer(String valueClass)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||