|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.bind.DatatypeConverterImpl
@Deprecated public final class DatatypeConverterImpl
This class is the JAXB RI's default implementation of the
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.
| Field Summary | |
|---|---|
static DatatypeConverterInterface |
theInstance
Deprecated. |
| Constructor Summary | |
|---|---|
protected |
DatatypeConverterImpl()
Deprecated. |
| Method Summary | |
|---|---|
static byte[] |
_parseBase64Binary(String text)
Deprecated. |
static Boolean |
_parseBoolean(CharSequence literal)
Deprecated. |
static byte |
_parseByte(CharSequence literal)
Deprecated. |
static GregorianCalendar |
_parseDateTime(CharSequence s)
Deprecated. |
static BigDecimal |
_parseDecimal(CharSequence content)
Deprecated. |
static double |
_parseDouble(CharSequence _val)
Deprecated. |
static float |
_parseFloat(CharSequence _val)
Deprecated. |
static int |
_parseInt(CharSequence s)
Deprecated. Faster but less robust String->int conversion. |
static BigInteger |
_parseInteger(CharSequence s)
Deprecated. |
static long |
_parseLong(CharSequence s)
Deprecated. |
static QName |
_parseQName(CharSequence text,
NamespaceContext nsc)
Deprecated. |
static short |
_parseShort(CharSequence s)
Deprecated. |
static String |
_printBase64Binary(byte[] input)
Deprecated. |
static String |
_printBase64Binary(byte[] input,
int offset,
int len)
Deprecated. |
static int |
_printBase64Binary(byte[] input,
int offset,
int len,
byte[] out,
int ptr)
Deprecated. Encodes a byte array into another byte array by first doing base64 encoding then encoding the result in ASCII. |
static int |
_printBase64Binary(byte[] input,
int offset,
int len,
char[] buf,
int ptr)
Deprecated. Encodes a byte array into a char array by doing base64 encoding. |
static void |
_printBase64Binary(byte[] input,
int offset,
int len,
XMLStreamWriter output)
Deprecated. |
static String |
_printBoolean(boolean val)
Deprecated. |
static String |
_printByte(byte val)
Deprecated. |
static String |
_printDate(Calendar val)
Deprecated. |
static String |
_printDateTime(Calendar val)
Deprecated. |
static String |
_printDecimal(BigDecimal val)
Deprecated. |
static String |
_printDouble(double v)
Deprecated. |
static String |
_printFloat(float v)
Deprecated. |
static String |
_printInt(int val)
Deprecated. |
static String |
_printInteger(BigInteger val)
Deprecated. |
static String |
_printLong(long val)
Deprecated. |
static String |
_printQName(QName val,
NamespaceContext nsc)
Deprecated. |
static String |
_printShort(short val)
Deprecated. |
static char |
encode(int i)
Deprecated. |
static byte |
encodeByte(int i)
Deprecated. |
String |
parseAnySimpleType(String lexicalXSDAnySimpleType)
Deprecated. |
byte[] |
parseBase64Binary(String lexicalXSDBase64Binary)
Deprecated. |
boolean |
parseBoolean(String lexicalXSDBoolean)
Deprecated. |
byte |
parseByte(String lexicalXSDByte)
Deprecated. |
Calendar |
parseDate(String lexicalXSDDate)
Deprecated. |
Calendar |
parseDateTime(String lexicalXSDDateTime)
Deprecated. |
BigDecimal |
parseDecimal(String content)
Deprecated. |
double |
parseDouble(String lexicalXSDDouble)
Deprecated. |
float |
parseFloat(String lexicalXSDFloat)
Deprecated. |
byte[] |
parseHexBinary(String s)
Deprecated. |
int |
parseInt(String s)
Deprecated. |
BigInteger |
parseInteger(String lexicalXSDInteger)
Deprecated. |
long |
parseLong(String lexicalXSLong)
Deprecated. |
QName |
parseQName(String lexicalXSDQName,
NamespaceContext nsc)
Deprecated. |
short |
parseShort(String lexicalXSDShort)
Deprecated. |
String |
parseString(String lexicalXSDString)
Deprecated. |
Calendar |
parseTime(String lexicalXSDTime)
Deprecated. |
long |
parseUnsignedInt(String lexicalXSDUnsignedInt)
Deprecated. |
int |
parseUnsignedShort(String lexicalXSDUnsignedShort)
Deprecated. |
String |
printAnySimpleType(String val)
Deprecated. |
String |
printBase64Binary(byte[] val)
Deprecated. |
String |
printBoolean(boolean val)
Deprecated. |
String |
printByte(byte val)
Deprecated. |
String |
printDate(Calendar val)
Deprecated. |
String |
printDateTime(Calendar val)
Deprecated. |
String |
printDecimal(BigDecimal val)
Deprecated. |
String |
printDouble(double v)
Deprecated. |
String |
printFloat(float v)
Deprecated. |
String |
printHexBinary(byte[] data)
Deprecated. |
String |
printInt(int val)
Deprecated. |
String |
printInteger(BigInteger val)
Deprecated. |
String |
printLong(long val)
Deprecated. |
String |
printQName(QName val,
NamespaceContext nsc)
Deprecated. |
String |
printShort(short val)
Deprecated. |
String |
printString(String val)
Deprecated. |
String |
printTime(Calendar val)
Deprecated. |
String |
printUnsignedInt(long val)
Deprecated. |
String |
printUnsignedShort(int val)
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
@Deprecated public static final DatatypeConverterInterface theInstance
| Constructor Detail |
|---|
protected DatatypeConverterImpl()
| Method Detail |
|---|
public static BigInteger _parseInteger(CharSequence s)
public static String _printInteger(BigInteger val)
public static int _parseInt(CharSequence s)
Integer.valueOf(String) is not.
Integer.valueOf(String) doesn't allow any.
public static long _parseLong(CharSequence s)
public static short _parseShort(CharSequence s)
public static String _printShort(short val)
public static BigDecimal _parseDecimal(CharSequence content)
public static float _parseFloat(CharSequence _val)
public static String _printFloat(float v)
public static double _parseDouble(CharSequence _val)
public static Boolean _parseBoolean(CharSequence literal)
public static String _printBoolean(boolean val)
public static byte _parseByte(CharSequence literal)
public static String _printByte(byte val)
public static QName _parseQName(CharSequence text,
NamespaceContext nsc)
public static GregorianCalendar _parseDateTime(CharSequence s)
public static String _printDateTime(Calendar val)
public static String _printDate(Calendar val)
public static String _printInt(int val)
public static String _printLong(long val)
public static String _printDecimal(BigDecimal val)
public static String _printDouble(double v)
public static String _printQName(QName val,
NamespaceContext nsc)
public static byte[] _parseBase64Binary(String text)
text - 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 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 char encode(int i)
public static byte encodeByte(int i)
public static String _printBase64Binary(byte[] input)
public static String _printBase64Binary(byte[] input,
int offset,
int len)
public static int _printBase64Binary(byte[] input,
int offset,
int len,
char[] buf,
int ptr)
ptr+((len+2)/3)*4, which is the new offset
in the output buffer where the further bytes should be placed.
public static void _printBase64Binary(byte[] input,
int offset,
int len,
XMLStreamWriter output)
throws XMLStreamException
XMLStreamException
public static int _printBase64Binary(byte[] input,
int offset,
int len,
byte[] out,
int ptr)
ptr+((len+2)/3)*4, which is the new offset
in the output buffer where the further bytes should be placed.@Deprecated public String parseString(String lexicalXSDString)
parseString in interface DatatypeConverterInterface@Deprecated public BigInteger parseInteger(String lexicalXSDInteger)
parseInteger in interface DatatypeConverterInterface@Deprecated public String printInteger(BigInteger val)
printInteger in interface DatatypeConverterInterface@Deprecated public int parseInt(String s)
parseInt in interface DatatypeConverterInterface@Deprecated public long parseLong(String lexicalXSLong)
parseLong in interface DatatypeConverterInterface@Deprecated public short parseShort(String lexicalXSDShort)
parseShort in interface DatatypeConverterInterface@Deprecated public String printShort(short val)
printShort in interface DatatypeConverterInterface@Deprecated public BigDecimal parseDecimal(String content)
parseDecimal in interface DatatypeConverterInterface@Deprecated public float parseFloat(String lexicalXSDFloat)
parseFloat in interface DatatypeConverterInterface@Deprecated public String printFloat(float v)
printFloat in interface DatatypeConverterInterface@Deprecated public double parseDouble(String lexicalXSDDouble)
parseDouble in interface DatatypeConverterInterface@Deprecated public boolean parseBoolean(String lexicalXSDBoolean)
parseBoolean in interface DatatypeConverterInterface@Deprecated public String printBoolean(boolean val)
printBoolean in interface DatatypeConverterInterface@Deprecated public byte parseByte(String lexicalXSDByte)
parseByte in interface DatatypeConverterInterface@Deprecated public String printByte(byte val)
printByte in interface DatatypeConverterInterface
@Deprecated
public QName parseQName(String lexicalXSDQName,
NamespaceContext nsc)
parseQName in interface DatatypeConverterInterface@Deprecated public Calendar parseDateTime(String lexicalXSDDateTime)
parseDateTime in interface DatatypeConverterInterface@Deprecated public String printDateTime(Calendar val)
printDateTime in interface DatatypeConverterInterface@Deprecated public byte[] parseBase64Binary(String lexicalXSDBase64Binary)
parseBase64Binary in interface DatatypeConverterInterface@Deprecated public byte[] parseHexBinary(String s)
parseHexBinary in interface DatatypeConverterInterface@Deprecated public String printHexBinary(byte[] data)
printHexBinary in interface DatatypeConverterInterface@Deprecated public long parseUnsignedInt(String lexicalXSDUnsignedInt)
parseUnsignedInt in interface DatatypeConverterInterface@Deprecated public String printUnsignedInt(long val)
printUnsignedInt in interface DatatypeConverterInterface@Deprecated public int parseUnsignedShort(String lexicalXSDUnsignedShort)
parseUnsignedShort in interface DatatypeConverterInterface@Deprecated public Calendar parseTime(String lexicalXSDTime)
parseTime in interface DatatypeConverterInterface@Deprecated public String printTime(Calendar val)
printTime in interface DatatypeConverterInterface@Deprecated public Calendar parseDate(String lexicalXSDDate)
parseDate in interface DatatypeConverterInterface@Deprecated public String printDate(Calendar val)
printDate in interface DatatypeConverterInterface@Deprecated public String parseAnySimpleType(String lexicalXSDAnySimpleType)
parseAnySimpleType in interface DatatypeConverterInterface@Deprecated public String printString(String val)
printString in interface DatatypeConverterInterface@Deprecated public String printInt(int val)
printInt in interface DatatypeConverterInterface@Deprecated public String printLong(long val)
printLong in interface DatatypeConverterInterface@Deprecated public String printDecimal(BigDecimal val)
printDecimal in interface DatatypeConverterInterface@Deprecated public String printDouble(double v)
printDouble in interface DatatypeConverterInterface
@Deprecated
public String printQName(QName val,
NamespaceContext nsc)
printQName in interface DatatypeConverterInterface@Deprecated public String printBase64Binary(byte[] val)
printBase64Binary in interface DatatypeConverterInterface@Deprecated public String printUnsignedShort(int val)
printUnsignedShort in interface DatatypeConverterInterface@Deprecated public String printAnySimpleType(String val)
printAnySimpleType in interface DatatypeConverterInterface
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||