@DecodeType(value=java.math.BigDecimal.class) public class DABigDecimalDecoder extends BigDecimalDecoder
BigDecimal
Decoder, which is EDI delimiters aware for parsing decimal.BigDecimal
value is decoded)NumberDecoder.NumberType
DataDecoder.Factory
FORMAT, TYPE
LOCALE, LOCALE_COUNTRY_CODE, LOCALE_LANGUAGE_CODE, VERIFY_LOCALE
Constructor and Description |
---|
DABigDecimalDecoder() |
Modifier and Type | Method and Description |
---|---|
Object |
decode(String data)
Decode the supplied String data into a new Object data instance.
|
String |
encode(Object object)
Encode an object to a string.
|
String |
encode(Object object,
Delimiters interchangeDelimiters) |
protected Delimiters |
getContextDelimiters() |
getNumberFormat, getType, isPercentage, setConfiguration
getConfiguration, getLocale, getLocale, isLocalInstalled
public Object decode(String data) throws DataDecodeException
DataDecoder
decode
in interface DataDecoder
decode
in class BigDecimalDecoder
data
- Data to be decoded.DataDecodeException
- Error decoding data.public String encode(Object object) throws DataDecodeException
DataEncoder
encode
in interface DataEncoder
encode
in class NumberDecoder
object
- The object to be encoded.DataDecodeException
- Error encoding object.public String encode(Object object, Delimiters interchangeDelimiters) throws DataDecodeException
DataDecodeException
protected Delimiters getContextDelimiters()
Copyright © 2020. All rights reserved.