public interface ValueReader
| Modifier and Type | Field and Description |
|---|---|
static ValueReader |
NULL
Provides null value.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isNull()
Reads the next value and tests whether or not it exists.
|
boolean |
readBoolean()
Reads the next value as a boolean.
|
default BigDecimal |
readDecimal()
Reads the next value as a decimal.
|
double |
readDouble()
Reads the next value as a floating point number value.
|
default float |
readFloat()
Reads the next value as a floating point number value.
|
default int |
readInt()
Reads the next value as an integer.
|
long |
readLong()
Reads the next value as an integer.
|
default String |
readString()
Reads the next value as a string.
|
void |
readString(StringBuilder buffer)
Reads the next value as a string, and put it into the given buffer.
|
static final ValueReader NULL
isNull()boolean isNull()
throws IOException
true if it exists, or false otherwiseIOException - if I/O error was occurredvoid readString(StringBuilder buffer) throws IOException
buffer - the destination bufferIOException - if I/O error was occurredIllegalStateException - if the next value is invalidisNull()default String readString() throws IOException
nullIOException - if I/O error was occurredisNull()default BigDecimal readDecimal() throws IOException
nullIOException - if I/O error was occurredIllegalStateException - if the next value is invalidNumberFormatException - if the next value is invalidArithmeticException - if the next value is invalidisNull()default int readInt()
throws IOException
IOException - if I/O error was occurredIllegalStateException - if the next value is invalidNumberFormatException - if the next value is invalidArithmeticException - if the next value is invalidisNull()long readLong()
throws IOException
IOException - if I/O error was occurredIllegalStateException - if the next value is invalidNumberFormatException - if the next value is invalidArithmeticException - if the next value is invalidisNull()default float readFloat()
throws IOException
IOException - if I/O error was occurredIllegalStateException - if the next value is invalidNumberFormatException - if the next value is invalidArithmeticException - if the next value is invalidisNull()double readDouble()
throws IOException
IOException - if I/O error was occurredIllegalStateException - if the next value is invalidNumberFormatException - if the next value is invalidArithmeticException - if the next value is invalidisNull()boolean readBoolean()
throws IOException
IOException - if I/O error was occurredIllegalStateException - if the next value is invalidisNull()Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.