public class ExecutionDataReader extends Object
Modifier and Type | Field and Description |
---|---|
protected CompactDataInput |
in
Underlying data input
|
Constructor and Description |
---|
ExecutionDataReader(InputStream input)
Creates a new reader based on the given input stream input.
|
Modifier and Type | Method and Description |
---|---|
boolean |
read()
Reads all data and reports it to the corresponding visitors.
|
protected boolean |
readBlock(byte blocktype)
Reads a block of data identified by the given id.
|
void |
setExecutionDataVisitor(IExecutionDataVisitor visitor)
Sets an listener for execution data.
|
void |
setSessionInfoVisitor(ISessionInfoVisitor visitor)
Sets an listener for session information.
|
protected final CompactDataInput in
public ExecutionDataReader(InputStream input)
input
- input stream to read execution data frompublic void setSessionInfoVisitor(ISessionInfoVisitor visitor)
visitor
- public void setExecutionDataVisitor(IExecutionDataVisitor visitor)
visitor
- public boolean read() throws IOException
true
if additional data can be expected after a
command has been executed. false
if the end of the
stream has been reached.IOException
- might be thrown by the underlying input streamprotected boolean readBlock(byte blocktype) throws IOException
blocktype
- block typetrue
if there are more blocks to readIOException
- might be thrown by the underlying input streamCopyright © 2013. All Rights Reserved.