T
- the type of target data modelpublic interface DataModelStreamSupport<T>
InputStream
/ OutputStream
for data models.
This implementation class must have public constructor without any parameters.Modifier and Type | Interface and Description |
---|---|
static interface |
DataModelStreamSupport.DataModelReader<T>
Supports
InputStream interface for data models. |
static interface |
DataModelStreamSupport.DataModelWriter<T>
Supports
OutputStream for data models. |
Modifier and Type | Method and Description |
---|---|
DataModelStreamSupport.DataModelReader<T> |
createReader(String path,
InputStream stream)
Creates a new
DataModelStreamSupport.DataModelReader for the specified properties. |
DataModelStreamSupport.DataModelWriter<T> |
createWriter(String path,
OutputStream stream)
Creates a new
DataModelStreamSupport.DataModelWriter for the specified properties. |
Class<T> |
getSupportedType()
Returns the supported data model type.
|
Class<T> getSupportedType()
DataModelStreamSupport.DataModelReader<T> createReader(String path, InputStream stream) throws IOException
DataModelStreamSupport.DataModelReader
for the specified properties.path
- the path about the target streamstream
- the target streamIOException
- if failed to create readerIllegalArgumentException
- if this does not support target property sequence,
or any parameter is null
DataModelStreamSupport.DataModelWriter<T> createWriter(String path, OutputStream stream) throws IOException
DataModelStreamSupport.DataModelWriter
for the specified properties.path
- the path about the target streamstream
- the target streamIOException
- if failed to create writerIllegalArgumentException
- if this does not support property sequence,
or any parameter is null
Copyright © 2011–2018 Asakusa Framework Team. All rights reserved.