public class JsonDataModelSource extends Object implements DataModelSource
DataModelSource from JSON object stream.| Constructor and Description |
|---|
JsonDataModelSource(URI id,
DataModelDefinition<?> definition,
Reader reader)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
DataModelReflection |
next()
Returns the next model object (in a generic reflection form).
|
public JsonDataModelSource(URI id, DataModelDefinition<?> definition, Reader reader)
id - source ID (nullable)definition - the data model definitionreader - source character streamIllegalArgumentException - if some parameters were nullpublic DataModelReflection next() throws IOException
DataModelSourcenext in interface DataModelSourcenull if no such objects existIOException - if failed to obtain model objectspublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.