org.jacoco.core.data
Class ExecutionDataReader

java.lang.Object
  extended by org.jacoco.core.data.ExecutionDataReader

public class ExecutionDataReader
extends Object

Deserialization of execution data from binary streams.

Version:
$Revision: $
Author:
Marc R. Hoffmann

Constructor Summary
ExecutionDataReader(InputStream input)
          Creates a new reader based on the given input stream input.
 
Method Summary
 void read()
          Reads all data and reports it to the corresponding visitors.
 void setExecutionDataVisitor(IExecutionDataVisitor visitor)
          Sets an listener for execution data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecutionDataReader

public ExecutionDataReader(InputStream input)
Creates a new reader based on the given input stream input. Depending on the nature of the underlying stream input should be buffered as most data is read in single bytes.

Parameters:
input - input stream to read execution data from
Method Detail

setExecutionDataVisitor

public void setExecutionDataVisitor(IExecutionDataVisitor visitor)
Sets an listener for execution data.

Parameters:
visitor -

read

public void read()
          throws IOException
Reads all data and reports it to the corresponding visitors.

Throws:
IOException - might be thrown by the underlying input stream