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 null
public DataModelReflection next() throws IOException
DataModelSource
next
in interface DataModelSource
null
if no such objects existIOException
- if failed to obtain model objectspublic void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.