T
- the type of source data modelspublic interface SourceDriver<T> extends Preparable, Closeable
Modifier and Type | Method and Description |
---|---|
void |
close()
Disposes this object.
|
T |
get()
Gets the current data model object prepared by the
next() method. |
boolean |
next()
Returns true iff the next data model object exists,
and then the
get() method returns its object. |
void |
prepare()
Prepares this driver to invoke
next() method. |
void prepare() throws IOException
next()
method.
This method will be invoked before next()
only once.
This operation can execute only on the same thread as created this object.prepare
in interface Preparable
IOException
- if failed to begiboolean next() throws IOException
get()
method returns its object.
This operation can execute only on the same thread as created this object.true
if the next data model object exists, otherwise false
IOException
- if failed to prepare the next dataT get() throws IOException
next()
method.
This operation can execute only on the same thread as created this object.IOException
- if failed to prepare the next dataIllegalStateException
- if the next data model object does not existnext()
void close() throws IOException
close
in interface AutoCloseable
close
in interface Closeable
IOException
- if failed to connectCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.