T
- the target data model typepublic class FilteredModelInput<T> extends Object implements ModelInput<T>
ModelInput
with DataFilter
.Constructor and Description |
---|
FilteredModelInput(ModelInput<T> delegate,
DataFilter<? super T> filter)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
readTo(T model)
Reads contents and write them into the target data model object.
|
public FilteredModelInput(ModelInput<T> delegate, DataFilter<? super T> filter)
delegate
- the original ModelInput
filter
- the data filterpublic boolean readTo(T model) throws IOException
ModelInput
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 moreIOException
- if error occurred while reading the next datapublic void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.