|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jacoco.core.data.ExecutionDataReader
public class ExecutionDataReader
Deserialization of execution data from binary streams.
Field Summary | |
---|---|
protected org.jacoco.core.internal.data.CompactDataInput |
in
Underlying data input |
Constructor Summary | |
---|---|
ExecutionDataReader(InputStream input)
Creates a new reader based on the given input stream input. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final org.jacoco.core.internal.data.CompactDataInput in
Constructor Detail |
---|
public ExecutionDataReader(InputStream input)
input
- input stream to read execution data fromMethod Detail |
---|
public void setSessionInfoVisitor(ISessionInfoVisitor visitor)
visitor
- visitor to retrieve session info eventspublic void setExecutionDataVisitor(IExecutionDataVisitor visitor)
visitor
- visitor to retrieve execution data eventspublic boolean read() throws IOException, IncompatibleExecDataVersionException
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 stream
IncompatibleExecDataVersionException
- incompatible data version from different JaCoCo releaseprotected boolean readBlock(byte blocktype) throws IOException
blocktype
- block type
true
if there are more blocks to read
IOException
- might be thrown by the underlying input stream
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |