|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jacoco.core.data.ExecutionDataWriter
public class ExecutionDataWriter
Serialization of execution data into binary streams.
Field Summary | |
---|---|
static byte |
BLOCK_EXECUTIONDATA
Block identifier for execution data of a single class. |
static byte |
BLOCK_HEADER
Block identifier for file headers. |
static char |
FORMAT_VERSION
File format version, will be incremented for each incompatible change. |
static char |
MAGIC_NUMBER
Magic number in header for file format identification. |
Constructor Summary | |
---|---|
ExecutionDataWriter(OutputStream output)
Creates a new writer based on the given output stream. |
Method Summary | |
---|---|
static byte[] |
getFileHeader()
Returns the first bytes of a file that represents a valid execution data file. |
void |
visitClassExecution(long id,
String name,
boolean[][] blockdata)
Provides execution data for the class with the given id. |
void |
writeHeader()
Writes an file header to identify the stream and its protocol version. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final char FORMAT_VERSION
public static final char MAGIC_NUMBER
public static final byte BLOCK_HEADER
public static final byte BLOCK_EXECUTIONDATA
Constructor Detail |
---|
public ExecutionDataWriter(OutputStream output)
output
- binary stream to write execution data toMethod Detail |
---|
public void writeHeader() throws IOException
IOException
public void visitClassExecution(long id, String name, boolean[][] blockdata)
IExecutionDataVisitor
true
indicates that a block has been executed, i.e. its last
instruction was called.
visitClassExecution
in interface IExecutionDataVisitor
id
- id of the classname
- VM name of the classblockdata
- coverage data for the classpublic static final byte[] getFileHeader()
0x01 0xC0 0xC0
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |