aboutsummaryrefslogtreecommitdiff
path: root/org.jacoco.core/src/org/jacoco/core/data/ExecutionDataWriter.java
diff options
context:
space:
mode:
authorMarc R. Hoffmann <hoffmann@mountainminds.com>2010-05-18 05:27:04 +0000
committerMarc R. Hoffmann <hoffmann@mountainminds.com>2010-05-18 05:27:04 +0000
commit20823ddbda94e8855c8528f3e0fc87eee1be2774 (patch)
treec66e76867d2d675aea1acfd8115ad1fdd75e42f4 /org.jacoco.core/src/org/jacoco/core/data/ExecutionDataWriter.java
parentf715b9442fbfc0d5c826785af4da8ec328b755b0 (diff)
downloadjacoco-20823ddbda94e8855c8528f3e0fc87eee1be2774.tar.gz
Trac #82: Making the data readers/writers extensible for additional, remote control specific blocks.
Diffstat (limited to 'org.jacoco.core/src/org/jacoco/core/data/ExecutionDataWriter.java')
-rw-r--r--org.jacoco.core/src/org/jacoco/core/data/ExecutionDataWriter.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/org.jacoco.core/src/org/jacoco/core/data/ExecutionDataWriter.java b/org.jacoco.core/src/org/jacoco/core/data/ExecutionDataWriter.java
index 775decf3..64609b72 100644
--- a/org.jacoco.core/src/org/jacoco/core/data/ExecutionDataWriter.java
+++ b/org.jacoco.core/src/org/jacoco/core/data/ExecutionDataWriter.java
@@ -40,7 +40,8 @@ public class ExecutionDataWriter implements ISessionInfoVisitor,
/** Block identifier for execution data of a single class. */
public static final byte BLOCK_EXECUTIONDATA = 0x11;
- private final CompactDataOutput out;
+ /** Underlying data output */
+ protected final CompactDataOutput out;
/**
* Creates a new writer based on the given output stream. Depending on the
@@ -67,6 +68,15 @@ public class ExecutionDataWriter implements ISessionInfoVisitor,
out.writeChar(FORMAT_VERSION);
}
+ /**
+ * Flushes the underlying stream.
+ *
+ * @throws IOException
+ */
+ public void flush() throws IOException {
+ out.flush();
+ }
+
public void visitSessionInfo(final SessionInfo info) {
try {
out.writeByte(BLOCK_SESSIONINFO);