public abstract class AbstractDataReader extends Object implements DataReader
DataReader implementation.created on: 11.01.2014
| Modifier and Type | Field and Description |
|---|---|
protected GCResource |
gcResource
the resource being read
|
protected LineNumberReader |
in
the reader accessing the log file
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractDataReader(GCResource gcResource,
InputStream in) |
| Modifier and Type | Method and Description |
|---|---|
protected DataReaderTools |
getDataReaderTools() |
protected Logger |
getLogger()
Returns a logger instance that logs in the context of the current GCResource being loaded.
|
abstract GCModel |
read()
A call to this method should read a
GCModel. |
protected boolean |
shouldContinue()
Returns
true as long as read was not cancelled. |
protected GCResource gcResource
protected LineNumberReader in
protected AbstractDataReader(GCResource gcResource, InputStream in) throws UnsupportedEncodingException
UnsupportedEncodingExceptionprotected Logger getLogger()
protected DataReaderTools getDataReaderTools()
public abstract GCModel read() throws IOException
DataReaderGCModel.read in interface DataReaderIOException - thrown, when an exception reading the file occurredprotected boolean shouldContinue()
true as long as read was not cancelled.true as long as read was not cancelledCopyright © 2019. All rights reserved.