Package com.thoughtworks.xstream.converters.basic
package com.thoughtworks.xstream.converters.basic
Converters for common basic types in Java. These include primitives (int, boolean, etc), wrapper objects (Integer, Boolean, etc), String, StringBuffer, java.util.Date, null, java.net.URL, java.math.BigInteger and java.math.BigDecimal.
These converters are enabled by default.
All of the basic converters will convert the item into a single String, with no nested elements.
-
ClassesClassDescriptionBase abstract implementation of
SingleValueConverter
.Converts a java.math.BigDecimal to a String, retaining its precision.Converts a java.math.BigInteger to a String.Converts a boolean primitive or java.lang.Boolean wrapper to a String.Converts a byte primitive or java.lang.Byte wrapper to a String.Converts a char primitive or java.lang.Character wrapper to a String.Converts aDate
to a string as a date format, retaining precision down to milliseconds.Converts a double primitive or java.lang.Double wrapper to a String.Converts a float primitive or java.lang.Float wrapper to a String.Converts an int primitive or java.lang.Integer wrapper to a String.Converts a long primitive or java.lang.Long wrapper to a String.Special converter to signify nulls at the root level.Converts a short primitive or java.lang.Short wrapper to a String.Converts the contents of a StringBuffer to XML.Converts the contents of a StringBuilder to XML.Converts a String to a String ;).Converts a java.net.URI to a string.Converts a java.net.URL to a string.Converts a java.util.UUID to a string.