public class DatatypeConverterImpl extends Object implements DatatypeConverterInterface
| Constructor and Description |
|---|
DatatypeConverterImpl() |
| Modifier and Type | Method and Description |
|---|---|
static DatatypeConverterImpl |
getInstance() |
String |
parseAnySimpleType(String arg0)
Returns the lexical representation of the input string, which is the unmodified input string.
|
byte[] |
parseBase64Binary(String arg0)
Parses the lexical representation of the given byte array, which is encoded in base 64.
|
boolean |
parseBoolean(String arg0)
Parses the lexical representation of the given boolean value and converts it into a primitive
boolean value. |
byte |
parseByte(String arg0)
Parses the lexical representation of the given 8 bit integer value and converts it into a
primitive
byte value. |
Calendar |
parseDate(String arg0)
Parses the lexical representation of the given date value and converts it into an instance of
Calendar. |
Calendar |
parseDateTime(String arg0)
Parses the lexical representation of the given dateTime value and converts it into an
instance of
Calendar. |
Calendar |
parseDateTime(String arg0,
boolean lenient)
Parses the lexical representation of the given dateTime value and converts it into an
instance of
Calendar. |
BigDecimal |
parseDecimal(String arg0)
Parses the lexical representation of the given decimal value (arbitrary precision) and
converts it into an instance of
BigDecimal. |
double |
parseDouble(String arg0)
Parses the lexical representation of the given 64 bit floating point value and converts it
into a primitive
double value. |
Duration |
parseDuration(String pDuration) |
float |
parseFloat(String arg0)
Parses the lexical representation of the given 32 bit floating point value and converts it
into a primitive
float value. |
byte[] |
parseHexBinary(String arg0)
Parses the lexical representation of the given byte array, which is encoded in hex digits.
|
int |
parseInt(String arg0)
Parses the lexical representation of the given 32 bit integer value and converts it into a
primitive
int value. |
BigInteger |
parseInteger(String arg0)
Parses the lexical representation of the given integer value (arbitrary precision) and
converts it into an instance of
BigInteger. |
long |
parseLong(String arg0)
Parses the lexical representation of the given 64 bit integer value and converts it into a
primitive
long value. |
QName |
parseQName(String arg0,
NamespaceContext arg1)
Parses the lexical representation of the given qualified name and converts it into an
instance of
QName. |
short |
parseShort(String arg0)
Parses the lexical representation of the given 16 bit integer value and converts it into a
primitive
short value. |
String |
parseString(String arg0)
Parses the lexical representation and converts it into a String.
|
Calendar |
parseTime(String arg0)
Parses the lexical representation of the given time value and converts it into an instance of
Calendar. |
long |
parseUnsignedInt(String arg0)
Parses the lexical representation of the given 32 bit unsignet integer value and converts it
into a primitive
long value. |
int |
parseUnsignedShort(String arg0)
Parses the lexical representation of the given 16 bit unsignet integer value and converts it
into a primitive
int value. |
String |
printAnySimpleType(String arg0)
Returns a lexical representation of the given input string, which is the unmodified input
string.
|
String |
printBase64Binary(byte[] arg0)
Returns a lexical representation of the given byte array.
|
String |
printBoolean(boolean arg0)
Returns a lexical representation of the given primitive boolean value.
|
String |
printByte(byte arg0)
Returns a lexical representation of the given primitive 8 bit integer.
|
String |
printDate(Calendar arg0)
Returns a lexical representation of the given date value.
|
String |
printDateTime(Calendar arg0)
Returns a lexical representation of the given dateTime value.
|
String |
printDecimal(BigDecimal arg0)
Returns a lexical representation of the given instance of
BigDecimal, which is a
decimal number in arbitrary precision. |
String |
printDouble(double arg0)
Returns a lexical representation of the given primitive 64 bit floating point number.
|
String |
printDuration(Duration pDuration) |
String |
printFloat(float arg0)
Returns a lexical representation of the given primitive 32 bit floating point number.
|
String |
printHexBinary(byte[] arg0)
Returns a lexical representation of the given byte array.
|
String |
printInt(int arg0)
Returns a lexical representation of the given primitive 32 bit integer.
|
String |
printInteger(BigInteger arg0)
Returns a lexical representation of the given instance of
BigInteger, which is an
integer in arbitrary precision. |
String |
printLong(long arg0)
Returns a lexical representation of the given primitive 64 bit integer.
|
String |
printQName(QName arg0,
NamespaceContext arg1)
Returns a lexical representation of the given qualified name, which is a combination of
namespace URI and local name.
|
String |
printShort(short arg0)
Returns a lexical representation of the given primitive 16 bit integer.
|
String |
printString(String arg0)
Returns a lexical representation of the given input string, which is the unmodified input
string.
|
String |
printTime(Calendar arg0)
Returns a lexical representation of the given time value.
|
String |
printUnsignedInt(long arg0)
Returns a lexical representation of the given primitive, unsigned 32 bit integer.
|
String |
printUnsignedShort(int arg0)
Returns a lexical representation of the given primitive, unsigned 16 bit integer.
|
public static DatatypeConverterImpl getInstance()
public String parseString(String arg0)
DatatypeConverterInterfaceparseString in interface DatatypeConverterInterfacearg0 - The input string being parsed.ParseConversionEventpublic BigInteger parseInteger(String arg0)
DatatypeConverterInterfaceBigInteger.parseInteger in interface DatatypeConverterInterfacearg0 - The input string being parsed.BigInteger.ParseConversionEventpublic int parseInt(String arg0)
DatatypeConverterInterfaceint value.parseInt in interface DatatypeConverterInterfacearg0 - The input string being parsed.int.ParseConversionEventpublic long parseLong(String arg0)
DatatypeConverterInterfacelong value.parseLong in interface DatatypeConverterInterfacearg0 - The input string being parsed.long.ParseConversionEventpublic short parseShort(String arg0)
DatatypeConverterInterfaceshort value.parseShort in interface DatatypeConverterInterfacearg0 - The input string being parsed.short.ParseConversionEventpublic BigDecimal parseDecimal(String arg0)
DatatypeConverterInterfaceBigDecimal.parseDecimal in interface DatatypeConverterInterfacearg0 - The input string being parsed.BigDecimal.ParseConversionEventpublic float parseFloat(String arg0)
DatatypeConverterInterfacefloat value.parseFloat in interface DatatypeConverterInterfacearg0 - The input string being parsed.float.ParseConversionEventpublic double parseDouble(String arg0)
DatatypeConverterInterfacedouble value.parseDouble in interface DatatypeConverterInterfacearg0 - The input string being parsed.double.ParseConversionEventpublic boolean parseBoolean(String arg0)
DatatypeConverterInterfaceboolean value.parseBoolean in interface DatatypeConverterInterfacearg0 - The input string being parsed.boolean.ParseConversionEventpublic byte parseByte(String arg0)
DatatypeConverterInterfacebyte value.parseByte in interface DatatypeConverterInterfacearg0 - The input string being parsed.byte.ParseConversionEventpublic QName parseQName(String arg0, NamespaceContext arg1)
DatatypeConverterInterfaceQName. The QName consists
of a namespace URI and a local name.parseQName in interface DatatypeConverterInterfacearg0 - The input string being parsed, an optional namespace prefix, followed
by the local name, if any. If a prefix is present, they are separated by a colon.arg1 - The namespace context is used to query mappings between prefixes and
namespace URI's.QName.ParseConversionEventpublic Calendar parseDateTime(String arg0, boolean lenient)
Calendar. Valid lexical representations of a dateTime value
include
YYYY-MM-DDThh:mm:ss YYYY-MM-DDThh:mm:ss.sss YYYY-MM-DDThh:mm:ssZ YYYY-MM-DDThh:mm:ss-01:00The former examples are all specified in UTC time. The last example uses a negative offset of one hour to UTC.
arg0 - The input string being parsed.lenient - parameter used for allowing lenient parsingCalendar.ParseConversionEventpublic Calendar parseDateTime(String arg0)
DatatypeConverterInterfaceCalendar. Valid lexical representations of a dateTime value
include
YYYY-MM-DDThh:mm:ss YYYY-MM-DDThh:mm:ss.sss YYYY-MM-DDThh:mm:ssZ YYYY-MM-DDThh:mm:ss-01:00The former examples are all specified in UTC time. The last example uses a negatice offset of one hour to UTC.
parseDateTime in interface DatatypeConverterInterfacearg0 - The input string being parsed.Calendar.ParseConversionEventpublic byte[] parseBase64Binary(String arg0)
DatatypeConverterInterfaceparseBase64Binary in interface DatatypeConverterInterfacearg0 - The input string being parsed, a base 64 encoded array of
bytes.ParseConversionEventpublic byte[] parseHexBinary(String arg0)
DatatypeConverterInterfaceparseHexBinary in interface DatatypeConverterInterfacearg0 - The input string being parsed, an array of bytes encoded in hex
digits.ParseConversionEventpublic long parseUnsignedInt(String arg0)
DatatypeConverterInterfacelong value.parseUnsignedInt in interface DatatypeConverterInterfacearg0 - The input string being parsed.long.ParseConversionEventpublic int parseUnsignedShort(String arg0)
DatatypeConverterInterfaceint value.parseUnsignedShort in interface DatatypeConverterInterfacearg0 - The input string being parsed.int.ParseConversionEventpublic Calendar parseTime(String arg0)
DatatypeConverterInterfaceCalendar. Valid lexical representations of a time value include
hh:mm:ss hh:mm:ss.sss hh:mm:ssZ hh:mm:ss-01:00The former examples are all specified in UTC time. The last example uses a negatice offset of one hour to UTC.
parseTime in interface DatatypeConverterInterfacearg0 - The input string being parsed.Calendar.ParseConversionEventpublic Calendar parseDate(String arg0)
DatatypeConverterInterfaceCalendar. Valid lexical representations of a date value include
YYYY-MM-DD YYYY-MM-DDZ YYYY-MM-DD-01:00The former examples are all specified in UTC time. The last example uses a negatice offset of one hour to UTC.
parseDate in interface DatatypeConverterInterfacearg0 - The input string being parsed.Calendar.ParseConversionEventpublic String parseAnySimpleType(String arg0)
DatatypeConverterInterfaceparseAnySimpleType in interface DatatypeConverterInterfacearg0 - An input string in lexical representation.ParseConversionEventpublic String printString(String arg0)
DatatypeConverterInterfaceprintString in interface DatatypeConverterInterfacearg0 - The input string.PrintConversionEventpublic String printInteger(BigInteger arg0)
DatatypeConverterInterfaceBigInteger, which is an
integer in arbitrary precision.printInteger in interface DatatypeConverterInterfacearg0 - The integer value being converted.PrintConversionEventpublic String printInt(int arg0)
DatatypeConverterInterfaceprintInt in interface DatatypeConverterInterfacearg0 - The int value being converted.PrintConversionEventpublic String printLong(long arg0)
DatatypeConverterInterfaceprintLong in interface DatatypeConverterInterfacearg0 - The long value being converted.PrintConversionEventpublic String printShort(short arg0)
DatatypeConverterInterfaceprintShort in interface DatatypeConverterInterfacearg0 - The short value being converted.PrintConversionEventpublic String printDecimal(BigDecimal arg0)
DatatypeConverterInterfaceBigDecimal, which is a
decimal number in arbitrary precision.printDecimal in interface DatatypeConverterInterfacearg0 - The decimal value being converted.PrintConversionEventpublic String printFloat(float arg0)
DatatypeConverterInterfaceprintFloat in interface DatatypeConverterInterfacearg0 - The float value being converted.PrintConversionEventpublic String printDouble(double arg0)
DatatypeConverterInterfaceprintDouble in interface DatatypeConverterInterfacearg0 - The double value being converted.PrintConversionEventpublic String printBoolean(boolean arg0)
DatatypeConverterInterfaceprintBoolean in interface DatatypeConverterInterfacearg0 - The boolean value being converted.PrintConversionEventpublic String printByte(byte arg0)
DatatypeConverterInterfaceprintByte in interface DatatypeConverterInterfacearg0 - The byte value being converted.PrintConversionEventpublic String printQName(QName arg0, NamespaceContext arg1)
DatatypeConverterInterfaceprintQName in interface DatatypeConverterInterfacearg0 - The qualified name being converted.arg1 - A mapping of prefixes to namespace URI's which may be used to
determine a valid prefix.PrintConversionEventpublic String printDateTime(Calendar arg0)
DatatypeConverterInterfaceYYYY-MM-DDThh:mm:ss YYYY-MM-DDThh:mm:ss.sss YYYY-MM-DDThh:mm:ssZ YYYY-MM-DDThh:mm:ss-01:00The former examples are all specified in UTC time. The last example uses a negatice offset of one hour to UTC.
printDateTime in interface DatatypeConverterInterfacearg0 - The dateTime value being convertedPrintConversionEventpublic String printBase64Binary(byte[] arg0)
DatatypeConverterInterfaceprintBase64Binary in interface DatatypeConverterInterfacearg0 - The byte array being converted.PrintConversionEventpublic String printHexBinary(byte[] arg0)
DatatypeConverterInterfaceprintHexBinary in interface DatatypeConverterInterfacearg0 - The byte array being converted.PrintConversionEventpublic String printUnsignedInt(long arg0)
DatatypeConverterInterfaceprintUnsignedInt in interface DatatypeConverterInterfacearg0 - The long value being converted.PrintConversionEventpublic String printUnsignedShort(int arg0)
DatatypeConverterInterfaceprintUnsignedShort in interface DatatypeConverterInterfacearg0 - The short value being converted.PrintConversionEventpublic String printTime(Calendar arg0)
DatatypeConverterInterfacehh:mm:ss hh:mm:ss.sss hh:mm:ssZ hh:mm:ss-01:00The former examples are all specified in UTC time. The last example uses a negatice offset of one hour to UTC.
printTime in interface DatatypeConverterInterfacearg0 - The time value being convertedPrintConversionEventpublic String printDate(Calendar arg0)
DatatypeConverterInterfaceYYYY-MM-DD YYYY-MM-DDZ YYYY-MM-DD-01:00The former examples are all specified in UTC time. The last example uses a negatice offset of one hour to UTC.
printDate in interface DatatypeConverterInterfacearg0 - The date value being convertedPrintConversionEventpublic String printAnySimpleType(String arg0)
DatatypeConverterInterfaceprintAnySimpleType in interface DatatypeConverterInterfacearg0 - The input string.PrintConversionEventCopyright © 1996–2021 Geotools. All rights reserved.