public class JacksonUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DT_KEY
They JSON key for the datatype, i.e.
|
static String |
VER_KEY
The JSON key for the version of the record, namely
DataMetaEntity.getVersion(). |
| Modifier and Type | Method and Description |
|---|---|
static JacksonUtil |
getInstance() |
com.fasterxml.jackson.core.JsonFactory |
getJf() |
BigDecimal |
readBigDecimal(com.fasterxml.jackson.core.JsonParser in) |
Byte[] |
readByteArray(com.fasterxml.jackson.core.JsonParser in) |
byte[] |
readByteArrayPrim(com.fasterxml.jackson.core.JsonParser in) |
<T extends org.ebay.datameta.dom.DataMetaEntity> |
readDeque(com.fasterxml.jackson.core.JsonParser in,
Jsonable<T> js) |
ZonedDateTime |
readDttm(com.fasterxml.jackson.core.JsonParser in) |
<T extends org.ebay.datameta.dom.DataMetaEntity> |
readLinkedListBigDecimal(com.fasterxml.jackson.core.JsonParser in) |
<T extends org.ebay.datameta.dom.DataMetaEntity> |
readLinkedListDouble(com.fasterxml.jackson.core.JsonParser in) |
<T extends org.ebay.datameta.dom.DataMetaEntity> |
readLinkedListFloat(com.fasterxml.jackson.core.JsonParser in) |
<T extends org.ebay.datameta.dom.DataMetaEntity> |
readLinkedListInteger(com.fasterxml.jackson.core.JsonParser in) |
<T extends org.ebay.datameta.dom.DataMetaEntity> |
readLinkedListLong(com.fasterxml.jackson.core.JsonParser in) |
<T extends org.ebay.datameta.dom.DataMetaEntity> |
readLinkedListString(com.fasterxml.jackson.core.JsonParser in) |
<T extends org.ebay.datameta.dom.DataMetaEntity> |
readLinkedListZonedDateTime(com.fasterxml.jackson.core.JsonParser in) |
<T extends org.ebay.datameta.dom.DataMetaEntity> |
readList(com.fasterxml.jackson.core.JsonParser in,
Jsonable<T> js) |
<T extends org.ebay.datameta.dom.DataMetaEntity> |
readListBigDecimal(com.fasterxml.jackson.core.JsonParser in) |
List<Double> |
readListDouble(com.fasterxml.jackson.core.JsonParser in) |
List<Float> |
readListFloat(com.fasterxml.jackson.core.JsonParser in) |
<T extends org.ebay.datameta.dom.DataMetaEntity> |
readListInteger(com.fasterxml.jackson.core.JsonParser in) |
List<Long> |
readListLong(com.fasterxml.jackson.core.JsonParser in) |
<T extends org.ebay.datameta.dom.DataMetaEntity> |
readListString(com.fasterxml.jackson.core.JsonParser in) |
<T extends org.ebay.datameta.dom.DataMetaEntity> |
readListZonedDateTime(com.fasterxml.jackson.core.JsonParser in) |
Long[] |
readLongArray(com.fasterxml.jackson.core.JsonParser in) |
<T extends org.ebay.datameta.dom.DataMetaEntity> |
readObject(Jsonable<T> in,
String source) |
<T extends org.ebay.datameta.dom.DataMetaEntity> |
readSet(com.fasterxml.jackson.core.JsonParser in,
Jsonable<T> js) |
<T extends org.ebay.datameta.dom.DataMetaEntity> |
readSetBigDecimal(com.fasterxml.jackson.core.JsonParser in) |
<T extends org.ebay.datameta.dom.DataMetaEntity> |
readSetDouble(com.fasterxml.jackson.core.JsonParser in) |
<T extends org.ebay.datameta.dom.DataMetaEntity> |
readSetFloat(com.fasterxml.jackson.core.JsonParser in) |
<T extends org.ebay.datameta.dom.DataMetaEntity> |
readSetInteger(com.fasterxml.jackson.core.JsonParser in) |
<T extends org.ebay.datameta.dom.DataMetaEntity> |
readSetLong(com.fasterxml.jackson.core.JsonParser in) |
<T extends org.ebay.datameta.dom.DataMetaEntity> |
readSetString(com.fasterxml.jackson.core.JsonParser in) |
<T extends org.ebay.datameta.dom.DataMetaEntity> |
readSetZonedDateTime(com.fasterxml.jackson.core.JsonParser in) |
String |
readText(com.fasterxml.jackson.core.JsonParser in) |
void |
writeBigDecimalFld(String fieldName,
com.fasterxml.jackson.core.JsonGenerator out,
BigDecimal source) |
void |
writeBitSetFld(String fieldName,
com.fasterxml.jackson.core.JsonGenerator out,
org.ebay.datameta.dom.BitSet source) |
void |
writeByteArrayFld(String fieldName,
com.fasterxml.jackson.core.JsonGenerator out,
byte[] source) |
void |
writeByteArrayFld(String fieldName,
com.fasterxml.jackson.core.JsonGenerator out,
Byte[] source) |
<T extends org.ebay.datameta.dom.DataMetaEntity> |
writeCollection(com.fasterxml.jackson.core.JsonGenerator out,
Collection<T> source,
Jsonable<T> js) |
<T extends org.ebay.datameta.dom.DataMetaEntity> |
writeCollectionFld(String fieldName,
com.fasterxml.jackson.core.JsonGenerator out,
Collection<T> source,
Jsonable<T> js) |
void |
writeDttmFld(String fieldName,
com.fasterxml.jackson.core.JsonGenerator out,
ZonedDateTime source) |
<T extends org.ebay.datameta.dom.DataMetaEntity> |
writeLinkedListBigDecimal(String fieldName,
com.fasterxml.jackson.core.JsonGenerator out,
LinkedList<BigDecimal> source) |
<T extends org.ebay.datameta.dom.DataMetaEntity> |
writeLinkedListDouble(String fieldName,
com.fasterxml.jackson.core.JsonGenerator out,
LinkedList<Double> source) |
<T extends org.ebay.datameta.dom.DataMetaEntity> |
writeLinkedListFloat(String fieldName,
com.fasterxml.jackson.core.JsonGenerator out,
LinkedList<Float> source) |
<T extends org.ebay.datameta.dom.DataMetaEntity> |
writeLinkedListInteger(String fieldName,
com.fasterxml.jackson.core.JsonGenerator out,
LinkedList<Integer> source) |
<T extends org.ebay.datameta.dom.DataMetaEntity> |
writeLinkedListLong(String fieldName,
com.fasterxml.jackson.core.JsonGenerator out,
LinkedList<Long> source) |
<T extends org.ebay.datameta.dom.DataMetaEntity> |
writeLinkedListString(String fieldName,
com.fasterxml.jackson.core.JsonGenerator out,
LinkedList<String> source) |
<T extends org.ebay.datameta.dom.DataMetaEntity> |
writeLinkedListZonedDateTime(String fieldName,
com.fasterxml.jackson.core.JsonGenerator out,
LinkedList<ZonedDateTime> source) |
<T extends org.ebay.datameta.dom.DataMetaEntity> |
writeListBigDecimal(String fieldName,
com.fasterxml.jackson.core.JsonGenerator out,
List<BigDecimal> source) |
<T extends org.ebay.datameta.dom.DataMetaEntity> |
writeListDouble(String fieldName,
com.fasterxml.jackson.core.JsonGenerator out,
List<Double> source) |
<T extends org.ebay.datameta.dom.DataMetaEntity> |
writeListFloat(String fieldName,
com.fasterxml.jackson.core.JsonGenerator out,
List<Float> source) |
<T extends org.ebay.datameta.dom.DataMetaEntity> |
writeListInteger(String fieldName,
com.fasterxml.jackson.core.JsonGenerator out,
List<Integer> source) |
<T extends org.ebay.datameta.dom.DataMetaEntity> |
writeListLong(String fieldName,
com.fasterxml.jackson.core.JsonGenerator out,
List<Long> source) |
<T extends org.ebay.datameta.dom.DataMetaEntity> |
writeListString(String fieldName,
com.fasterxml.jackson.core.JsonGenerator out,
List<String> source) |
<T extends org.ebay.datameta.dom.DataMetaEntity> |
writeListZonedDateTime(String fieldName,
com.fasterxml.jackson.core.JsonGenerator out,
List<ZonedDateTime> source) |
void |
writeLongArrayFld(String fieldName,
com.fasterxml.jackson.core.JsonGenerator out,
Long[] source) |
<T extends org.ebay.datameta.dom.DataMetaEntity> |
writeObject(Jsonable<T> out,
T v) |
<T extends org.ebay.datameta.dom.DataMetaEntity> |
writeSetBigDecimal(String fieldName,
com.fasterxml.jackson.core.JsonGenerator out,
Set<BigDecimal> source) |
<T extends org.ebay.datameta.dom.DataMetaEntity> |
writeSetDouble(String fieldName,
com.fasterxml.jackson.core.JsonGenerator out,
Set<Double> source) |
<T extends org.ebay.datameta.dom.DataMetaEntity> |
writeSetFloat(String fieldName,
com.fasterxml.jackson.core.JsonGenerator out,
Set<Float> source) |
<T extends org.ebay.datameta.dom.DataMetaEntity> |
writeSetInteger(String fieldName,
com.fasterxml.jackson.core.JsonGenerator out,
Set<Integer> source) |
<T extends org.ebay.datameta.dom.DataMetaEntity> |
writeSetLong(String fieldName,
com.fasterxml.jackson.core.JsonGenerator out,
Set<Long> source) |
<T extends org.ebay.datameta.dom.DataMetaEntity> |
writeSetString(String fieldName,
com.fasterxml.jackson.core.JsonGenerator out,
Set<String> source) |
<T extends org.ebay.datameta.dom.DataMetaEntity> |
writeSetZonedDateTime(String fieldName,
com.fasterxml.jackson.core.JsonGenerator out,
Set<ZonedDateTime> source) |
void |
writeTextFldIfAny(String fieldName,
com.fasterxml.jackson.core.JsonGenerator out,
String source) |
public static final String VER_KEY
DataMetaEntity.getVersion().public static final String DT_KEY
public static JacksonUtil getInstance()
public com.fasterxml.jackson.core.JsonFactory getJf()
public <T extends org.ebay.datameta.dom.DataMetaEntity> String writeObject(Jsonable<T> out, T v) throws IOException
IOExceptionpublic <T extends org.ebay.datameta.dom.DataMetaEntity> T readObject(Jsonable<T> in, String source) throws IOException
IOExceptionpublic void writeTextFldIfAny(String fieldName, com.fasterxml.jackson.core.JsonGenerator out, String source) throws IOException
IOExceptionpublic String readText(com.fasterxml.jackson.core.JsonParser in) throws IOException
IOExceptionpublic void writeDttmFld(String fieldName, com.fasterxml.jackson.core.JsonGenerator out, ZonedDateTime source) throws IOException
IOExceptionpublic ZonedDateTime readDttm(com.fasterxml.jackson.core.JsonParser in) throws IOException
IOExceptionpublic void writeBigDecimalFld(String fieldName, com.fasterxml.jackson.core.JsonGenerator out, BigDecimal source) throws IOException
IOExceptionpublic BigDecimal readBigDecimal(com.fasterxml.jackson.core.JsonParser in) throws IOException
IOExceptionpublic void writeByteArrayFld(String fieldName, com.fasterxml.jackson.core.JsonGenerator out, Byte[] source) throws IOException
IOExceptionpublic void writeByteArrayFld(String fieldName, com.fasterxml.jackson.core.JsonGenerator out, byte[] source) throws IOException
IOExceptionpublic Byte[] readByteArray(com.fasterxml.jackson.core.JsonParser in) throws IOException
IOExceptionpublic byte[] readByteArrayPrim(com.fasterxml.jackson.core.JsonParser in)
throws IOException
IOExceptionpublic void writeLongArrayFld(String fieldName, com.fasterxml.jackson.core.JsonGenerator out, Long[] source) throws IOException
IOExceptionpublic Long[] readLongArray(com.fasterxml.jackson.core.JsonParser in) throws IOException
IOExceptionpublic void writeBitSetFld(String fieldName, com.fasterxml.jackson.core.JsonGenerator out, org.ebay.datameta.dom.BitSet source) throws IOException
IOExceptionpublic <T extends org.ebay.datameta.dom.DataMetaEntity> void writeCollection(com.fasterxml.jackson.core.JsonGenerator out,
Collection<T> source,
Jsonable<T> js)
throws IOException
IOExceptionpublic <T extends org.ebay.datameta.dom.DataMetaEntity> void writeCollectionFld(String fieldName, com.fasterxml.jackson.core.JsonGenerator out, Collection<T> source, Jsonable<T> js) throws IOException
IOExceptionpublic <T extends org.ebay.datameta.dom.DataMetaEntity> List<T> readList(com.fasterxml.jackson.core.JsonParser in, Jsonable<T> js) throws IOException
IOExceptionpublic <T extends org.ebay.datameta.dom.DataMetaEntity> Set<T> readSet(com.fasterxml.jackson.core.JsonParser in, Jsonable<T> js) throws IOException
IOExceptionpublic <T extends org.ebay.datameta.dom.DataMetaEntity> Deque<T> readDeque(com.fasterxml.jackson.core.JsonParser in, Jsonable<T> js) throws IOException
IOExceptionpublic <T extends org.ebay.datameta.dom.DataMetaEntity> List<Integer> readListInteger(com.fasterxml.jackson.core.JsonParser in) throws IOException
IOExceptionpublic List<Long> readListLong(com.fasterxml.jackson.core.JsonParser in) throws IOException
IOExceptionpublic List<Float> readListFloat(com.fasterxml.jackson.core.JsonParser in) throws IOException
IOExceptionpublic List<Double> readListDouble(com.fasterxml.jackson.core.JsonParser in) throws IOException
IOExceptionpublic <T extends org.ebay.datameta.dom.DataMetaEntity> List<String> readListString(com.fasterxml.jackson.core.JsonParser in) throws IOException
IOExceptionpublic <T extends org.ebay.datameta.dom.DataMetaEntity> List<ZonedDateTime> readListZonedDateTime(com.fasterxml.jackson.core.JsonParser in) throws IOException
IOExceptionpublic <T extends org.ebay.datameta.dom.DataMetaEntity> List<BigDecimal> readListBigDecimal(com.fasterxml.jackson.core.JsonParser in) throws IOException
IOExceptionpublic <T extends org.ebay.datameta.dom.DataMetaEntity> void writeListInteger(String fieldName, com.fasterxml.jackson.core.JsonGenerator out, List<Integer> source) throws IOException
IOExceptionpublic <T extends org.ebay.datameta.dom.DataMetaEntity> void writeListLong(String fieldName, com.fasterxml.jackson.core.JsonGenerator out, List<Long> source) throws IOException
IOExceptionpublic <T extends org.ebay.datameta.dom.DataMetaEntity> void writeListFloat(String fieldName, com.fasterxml.jackson.core.JsonGenerator out, List<Float> source) throws IOException
IOExceptionpublic <T extends org.ebay.datameta.dom.DataMetaEntity> void writeListDouble(String fieldName, com.fasterxml.jackson.core.JsonGenerator out, List<Double> source) throws IOException
IOExceptionpublic <T extends org.ebay.datameta.dom.DataMetaEntity> void writeListString(String fieldName, com.fasterxml.jackson.core.JsonGenerator out, List<String> source) throws IOException
IOExceptionpublic <T extends org.ebay.datameta.dom.DataMetaEntity> void writeListZonedDateTime(String fieldName, com.fasterxml.jackson.core.JsonGenerator out, List<ZonedDateTime> source) throws IOException
IOExceptionpublic <T extends org.ebay.datameta.dom.DataMetaEntity> void writeListBigDecimal(String fieldName, com.fasterxml.jackson.core.JsonGenerator out, List<BigDecimal> source) throws IOException
IOExceptionpublic <T extends org.ebay.datameta.dom.DataMetaEntity> List<Integer> readLinkedListInteger(com.fasterxml.jackson.core.JsonParser in) throws IOException
IOExceptionpublic <T extends org.ebay.datameta.dom.DataMetaEntity> List<Long> readLinkedListLong(com.fasterxml.jackson.core.JsonParser in) throws IOException
IOExceptionpublic <T extends org.ebay.datameta.dom.DataMetaEntity> List<Float> readLinkedListFloat(com.fasterxml.jackson.core.JsonParser in) throws IOException
IOExceptionpublic <T extends org.ebay.datameta.dom.DataMetaEntity> List<Double> readLinkedListDouble(com.fasterxml.jackson.core.JsonParser in) throws IOException
IOExceptionpublic <T extends org.ebay.datameta.dom.DataMetaEntity> List<String> readLinkedListString(com.fasterxml.jackson.core.JsonParser in) throws IOException
IOExceptionpublic <T extends org.ebay.datameta.dom.DataMetaEntity> List<ZonedDateTime> readLinkedListZonedDateTime(com.fasterxml.jackson.core.JsonParser in) throws IOException
IOExceptionpublic <T extends org.ebay.datameta.dom.DataMetaEntity> List<BigDecimal> readLinkedListBigDecimal(com.fasterxml.jackson.core.JsonParser in) throws IOException
IOExceptionpublic <T extends org.ebay.datameta.dom.DataMetaEntity> void writeLinkedListInteger(String fieldName, com.fasterxml.jackson.core.JsonGenerator out, LinkedList<Integer> source) throws IOException
IOExceptionpublic <T extends org.ebay.datameta.dom.DataMetaEntity> void writeLinkedListLong(String fieldName, com.fasterxml.jackson.core.JsonGenerator out, LinkedList<Long> source) throws IOException
IOExceptionpublic <T extends org.ebay.datameta.dom.DataMetaEntity> void writeLinkedListFloat(String fieldName, com.fasterxml.jackson.core.JsonGenerator out, LinkedList<Float> source) throws IOException
IOExceptionpublic <T extends org.ebay.datameta.dom.DataMetaEntity> void writeLinkedListDouble(String fieldName, com.fasterxml.jackson.core.JsonGenerator out, LinkedList<Double> source) throws IOException
IOExceptionpublic <T extends org.ebay.datameta.dom.DataMetaEntity> void writeLinkedListString(String fieldName, com.fasterxml.jackson.core.JsonGenerator out, LinkedList<String> source) throws IOException
IOExceptionpublic <T extends org.ebay.datameta.dom.DataMetaEntity> void writeLinkedListZonedDateTime(String fieldName, com.fasterxml.jackson.core.JsonGenerator out, LinkedList<ZonedDateTime> source) throws IOException
IOExceptionpublic <T extends org.ebay.datameta.dom.DataMetaEntity> void writeLinkedListBigDecimal(String fieldName, com.fasterxml.jackson.core.JsonGenerator out, LinkedList<BigDecimal> source) throws IOException
IOExceptionpublic <T extends org.ebay.datameta.dom.DataMetaEntity> Set<Integer> readSetInteger(com.fasterxml.jackson.core.JsonParser in) throws IOException
IOExceptionpublic <T extends org.ebay.datameta.dom.DataMetaEntity> Set<Long> readSetLong(com.fasterxml.jackson.core.JsonParser in) throws IOException
IOExceptionpublic <T extends org.ebay.datameta.dom.DataMetaEntity> Set<Float> readSetFloat(com.fasterxml.jackson.core.JsonParser in) throws IOException
IOExceptionpublic <T extends org.ebay.datameta.dom.DataMetaEntity> Set<Double> readSetDouble(com.fasterxml.jackson.core.JsonParser in) throws IOException
IOExceptionpublic <T extends org.ebay.datameta.dom.DataMetaEntity> Set<String> readSetString(com.fasterxml.jackson.core.JsonParser in) throws IOException
IOExceptionpublic <T extends org.ebay.datameta.dom.DataMetaEntity> Set<ZonedDateTime> readSetZonedDateTime(com.fasterxml.jackson.core.JsonParser in) throws IOException
IOExceptionpublic <T extends org.ebay.datameta.dom.DataMetaEntity> Set<BigDecimal> readSetBigDecimal(com.fasterxml.jackson.core.JsonParser in) throws IOException
IOExceptionpublic <T extends org.ebay.datameta.dom.DataMetaEntity> void writeSetInteger(String fieldName, com.fasterxml.jackson.core.JsonGenerator out, Set<Integer> source) throws IOException
IOExceptionpublic <T extends org.ebay.datameta.dom.DataMetaEntity> void writeSetLong(String fieldName, com.fasterxml.jackson.core.JsonGenerator out, Set<Long> source) throws IOException
IOExceptionpublic <T extends org.ebay.datameta.dom.DataMetaEntity> void writeSetFloat(String fieldName, com.fasterxml.jackson.core.JsonGenerator out, Set<Float> source) throws IOException
IOExceptionpublic <T extends org.ebay.datameta.dom.DataMetaEntity> void writeSetDouble(String fieldName, com.fasterxml.jackson.core.JsonGenerator out, Set<Double> source) throws IOException
IOExceptionpublic <T extends org.ebay.datameta.dom.DataMetaEntity> void writeSetString(String fieldName, com.fasterxml.jackson.core.JsonGenerator out, Set<String> source) throws IOException
IOExceptionpublic <T extends org.ebay.datameta.dom.DataMetaEntity> void writeSetZonedDateTime(String fieldName, com.fasterxml.jackson.core.JsonGenerator out, Set<ZonedDateTime> source) throws IOException
IOExceptionpublic <T extends org.ebay.datameta.dom.DataMetaEntity> void writeSetBigDecimal(String fieldName, com.fasterxml.jackson.core.JsonGenerator out, Set<BigDecimal> source) throws IOException
IOExceptionCopyright © 2018. All rights reserved.