Class RemoteControlReader
java.lang.Object
org.jacoco.core.data.ExecutionDataReader
org.jacoco.core.runtime.RemoteControlReader
ExecutionDataReader with commands added for runtime remote control.-
Field Summary
FieldsFields inherited from class ExecutionDataReader
in -
Constructor Summary
ConstructorsConstructorDescriptionRemoteControlReader(InputStream input) Create a new read based on the given input stream. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanreadBlock(byte blockid) Reads a block of data identified by the given id.private voidvoidSets an listener for agent commands.Methods inherited from class ExecutionDataReader
read, setExecutionDataVisitor, setSessionInfoVisitor
-
Field Details
-
remoteCommandVisitor
-
-
Constructor Details
-
RemoteControlReader
Create a new read based on the given input stream.- Parameters:
input- input stream to read commands from- Throws:
IOException- if the stream does not have a valid header
-
-
Method Details
-
readBlock
Description copied from class:ExecutionDataReaderReads a block of data identified by the given id. Subclasses may overwrite this method to support additional block types.- Overrides:
readBlockin classExecutionDataReader- Parameters:
blockid- block type- Returns:
trueif there are more blocks to read- Throws:
IOException- might be thrown by the underlying input stream
-
setRemoteCommandVisitor
Sets an listener for agent commands.- Parameters:
visitor- visitor to retrieve agent commands
-
readDumpCommand
- Throws:
IOException
-