Deprecated
in JAXB 2.2.4 - use jakarta.xml.bind.DatatypeConverterImpl instead or let us know why you can't
DatatypeConverterInterface.
When client applications specify the use of the static print/parse
methods in DatatypeConverter, it will delegate
to this class.
This class is responsible for whitespace normalization.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final byte[] | |
| private static final Map | |
| private static final char[] | |
| private static final char[] | hexCode
Deprecated
|
| private static final byte | |
| public static final DatatypeConverterInterface | theInstance
Deprecated
|
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static byte[] | _parseBase64Binary(String
base64Binary data is likely to be long, and decoding requires
each character to be accessed twice (once for counting length, another
for decoding.)
A benchmark showed that taking text)String is faster, presumably
because JIT can inline a lot of string access (with data of 1K chars, it was twice as fast)
|
| public static Boolean | |
| public static byte | |
| public static GregorianCalendar | |
| public static BigDecimal | |
| public static double | |
| public static float | |
| public static int | |
| public static BigInteger | |
| public static long | |
| public static QName | |
| public static short | |
| public static String | |
| public static String | |
| public static int | Returns: the value ofptr+((len+2)/3)*4, which is the new offset
in the output buffer where the further bytes should be placed.Encodes a byte array into a char array by doing base64 encoding. |
| public static void | |
| public static int | Returns: the value ofptr+((len+2)/3)*4, which is the new offset
in the output buffer where the further bytes should be placed.Encodes a byte array into another byte array by first doing base64 encoding then encoding the result in ASCII. |
| public static String | |
| public static String | |
| public static String | |
| public static String | |
| public static String | |
| public static String | |
| public static String | |
| public static String | |
| public static String | |
| public static String | |
| public static String | |
| public static String | |
| public static char | |
| public static byte | |
| public static DatatypeFactory | |
| private static int | |
| private static int | |
| private static byte[] | |
| private static char[] | |
| private static boolean | |
| public String | parseAnySimpleType(String lexicalXSDAnySimpleType)
Implements jakarta.
Deprecated
Return a string containing the lexical representation of the simple type. |
| public byte[] | parseBase64Binary(String lexicalXSDBase64Binary)
Implements jakarta.
Deprecated
Converts the string argument into an array of bytes. |
| public boolean | parseBoolean(String lexicalXSDBoolean)
Implements jakarta.
Deprecated
Converts the string argument into a boolean value. |
| public byte | parseByte(String lexicalXSDByte)
Implements jakarta.
Deprecated
Converts the string argument into a byte value. |
| public Calendar | parseDate(String lexicalXSDDate)
Implements jakarta.
Deprecated
Converts the string argument into a Calendar value. |
| public Calendar | parseDateTime(String lexicalXSDDateTime)
Implements jakarta.
Deprecated
Converts the string argument into a Calendar value. |
| public BigDecimal | parseDecimal(String content)
Implements jakarta.
Deprecated
Converts the string argument into a BigDecimal value. |
| public double | parseDouble(String lexicalXSDDouble)
Implements jakarta.
Deprecated
Converts the string argument into a double value. |
| public float | parseFloat(String lexicalXSDFloat)
Implements jakarta.
Deprecated
Converts the string argument into a float value. |
| public byte[] | parseHexBinary(String s)
Implements jakarta.
Deprecated
Converts the string argument into an array of bytes. |
| public int | parseInt(String s)
Implements jakarta.
Deprecated
Convert the string argument into an int value. |
| public BigInteger | parseInteger(String lexicalXSDInteger)
Implements jakarta.
Deprecated
Convert the string argument into a BigInteger value. |
| public long | parseLong(String lexicalXSLong)
Implements jakarta.
Deprecated
Converts the string argument into a long value. |
| public QName | parseQName(String lexicalXSDQName, NamespaceContext nsc)
Implements jakarta.
Deprecated
Converts the string argument into a QName value. |
| public short | parseShort(String lexicalXSDShort)
Implements jakarta.
Deprecated
Converts the string argument into a short value. |
| public String | parseString(String lexicalXSDString)
Implements jakarta.
Deprecated
Convert the string argument into a string. |
| public Calendar | parseTime(String lexicalXSDTime)
Implements jakarta.
Deprecated
Converts the string argument into a Calendar value. |
| public long | parseUnsignedInt(String lexicalXSDUnsignedInt)
Implements jakarta.
Deprecated
Converts the string argument into a long value. |
| public int | parseUnsignedShort(String lexicalXSDUnsignedShort)
Implements jakarta.
Deprecated
Converts the string argument into an int value. |
| public String | printAnySimpleType(String val)
Implements jakarta.
Deprecated
Converts a string value into a string. |
| public String | printBase64Binary(byte[] val)
Implements jakarta.
Deprecated
Converts an array of bytes into a string. |
| public String | printBoolean(boolean val)
Implements jakarta.
Deprecated
Converts a boolean value into a string. |
| public String | printByte(byte val)
Implements jakarta.
Deprecated
Converts a byte value into a string. |
| public String | printDate(Calendar val)
Implements jakarta.
Deprecated
Converts a Calendar value into a string. |
| public String | printDateTime(Calendar val)
Implements jakarta.
Deprecated
Converts a Calendar value into a string. |
| public String | printDecimal(BigDecimal val)
Implements jakarta.
Deprecated
Converts a BigDecimal value into a string. |
| public String | printDouble(double v)
Implements jakarta.
Deprecated
Converts a double value into a string. |
| public String | printFloat(float v)
Implements jakarta.
Deprecated
Converts a float value into a string. |
| public String | printHexBinary(byte[] data)
Implements jakarta.
Deprecated
Converts an array of bytes into a string. |
| public String | printInt(int val)
Implements jakarta.
Deprecated
Converts an int value into a string. |
| public String | printInteger(BigInteger val)
Implements jakarta.
Deprecated
Converts a BigInteger value into a string. |
| public String | printLong(long val)
Implements jakarta.
Deprecated
Converts a long value into a string. |
| public String | printQName(QName val, NamespaceContext nsc)
Implements jakarta.
Deprecated
Converts a QName instance into a string. |
| public String | printShort(short val)
Implements jakarta.
Deprecated
Converts a short value into a string. |
| public String | printString(String val)
Implements jakarta.
Deprecated
Converts the string argument into a string. |
| public String | printTime(Calendar val)
Implements jakarta.
Deprecated
Converts a Calendar value into a string. |
| public String | printUnsignedInt(long val)
Implements jakarta.
Deprecated
Converts a long value into a string. |
| public String | printUnsignedShort(int val)
Implements jakarta.
Deprecated
Converts an int value into a string. |
| private static CharSequence |