public interface JsonFormatter
JsonBinary.parse(byte[], JsonFormatter) a JSON binary
value.| Modifier and Type | Method and Description |
|---|---|
void |
beginArray(int numElements)
Prepare to receive the value pairs that in a JSON array.
|
void |
beginObject(int numElements)
Prepare to receive the name-value pairs in a JSON object.
|
void |
endArray()
Complete the previously-started JSON array.
|
void |
endObject()
Complete the previously-started JSON object.
|
void |
name(String name)
Receive the name of an element in a JSON object.
|
void |
nextEntry()
Called after an entry signaling that another entry will be signaled.
|
void |
value(BigDecimal value)
Receive the
BigDecimal value of an element in a JSON object. |
void |
value(BigInteger value)
Receive the
BigInteger value of an element in a JSON object. |
void |
value(boolean value)
Receive the boolean value of an element in a JSON object.
|
void |
value(double value)
Receive the double value of an element in a JSON object.
|
void |
value(int value)
Receive the integer value of an element in a JSON object.
|
void |
value(long value)
Receive the long value of an element in a JSON object.
|
void |
value(String value)
Receive the string value of an element in a JSON object.
|
void |
valueDate(int year,
int month,
int day)
Receive the date value of an element in a JSON object.
|
void |
valueDatetime(int year,
int month,
int day,
int hour,
int min,
int sec,
int microSeconds)
Receive the date and time value of an element in a JSON object.
|
void |
valueNull()
Receive a null value of an element in a JSON object.
|
void |
valueOpaque(ColumnType type,
byte[] value)
Receive an opaque value of an element in a JSON object.
|
void |
valueTime(int hour,
int min,
int sec,
int microSeconds)
Receive the time value of an element in a JSON object.
|
void |
valueTimestamp(long secondsPastEpoch,
int microSeconds)
Receive the timestamp value of an element in a JSON object.
|
void |
valueYear(int year)
Receive the year value of an element in a JSON object.
|
void beginObject(int numElements)
numElements - the number of name-value pairs (or elements)void beginArray(int numElements)
numElements - the number of array elementsvoid endObject()
void endArray()
void name(String name)
name - the element's name; never nullvoid value(String value)
value - the element's value; never nullvoid value(int value)
value - the element's valuevoid value(long value)
value - the element's valuevoid value(double value)
value - the element's valuevoid value(BigInteger value)
BigInteger value of an element in a JSON object.value - the element's value; never nullvoid value(BigDecimal value)
BigDecimal value of an element in a JSON object.value - the element's value; never nullvoid value(boolean value)
value - the element's valuevoid valueNull()
void valueYear(int year)
year - the year number that makes up the element's valuevoid valueDate(int year,
int month,
int day)
year - the positive or negative year in the element's date valuemonth - the month (0-12) in the element's date valueday - the day of the month (0-31) in the element's date valuevoid valueDatetime(int year,
int month,
int day,
int hour,
int min,
int sec,
int microSeconds)
year - the positive or negative year in the element's date valuemonth - the month (0-12) in the element's date valueday - the day of the month (0-31) in the element's date valuehour - the hour of the day (0-24) in the element's time valuemin - the minutes of the hour (0-60) in the element's time valuesec - the seconds of the minute (0-60) in the element's time valuemicroSeconds - the number of microseconds in the element's time valuevoid valueTime(int hour,
int min,
int sec,
int microSeconds)
hour - the hour of the day (0-24) in the element's time valuemin - the minutes of the hour (0-60) in the element's time valuesec - the seconds of the minute (0-60) in the element's time valuemicroSeconds - the number of microseconds in the element's time valuevoid valueTimestamp(long secondsPastEpoch,
int microSeconds)
secondsPastEpoch - the number of seconds past epoch (January 1, 1970) in the element's timestamp valuemicroSeconds - the number of microseconds in the element's time valuevoid valueOpaque(ColumnType type, byte[] value)
type - the column type for the value; may not be nullvalue - the binary representation for the element's valuevoid nextEntry()
Copyright © 2019. All rights reserved.