T
- the data typepublic interface JsonInput<T> extends ModelInput<T>
Modifier and Type | Method and Description |
---|---|
default long |
getLineNumber()
Returns the number of line where the last input starts.
|
default long |
getRecordIndex()
Returns the record index of the last input.
|
boolean |
readTo(T model)
Reads contents and write them into the target data model object.
|
boolean readTo(T model) throws IOException
readTo
in interface ModelInput<T>
model
- the target data model objecttrue
if the next data was successfully read, or false
if there is no any moreJsonFormatException
- if JSON data is invalidIOException
- if error occurred while reading the next datadefault long getLineNumber()
-1
if it is not suredefault long getRecordIndex()
-1
if it is not sureCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.