Class CommandChannelDecoder
java.lang.Object
org.apache.maven.surefire.booter.spi.CommandChannelDecoder
- All Implemented Interfaces:
AutoCloseable,MasterProcessChannelDecoder
magic number : opcode [: opcode specific data]*
- Since:
- 3.0.0-M5
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CommandDecoderprivate AbstractStreamDecoder.Memento -
Constructor Summary
ConstructorsConstructorDescriptionCommandChannelDecoder(ReadableByteChannel channel, ForkNodeArguments arguments) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()decode()Reads the bytes from a channel, waiting until the command is read completely or the channel throwsEOFException.
-
Field Details
-
decoder
-
memento
-
-
Constructor Details
-
CommandChannelDecoder
public CommandChannelDecoder(@Nonnull ReadableByteChannel channel, @Nonnull ForkNodeArguments arguments)
-
-
Method Details
-
decode
Description copied from interface:MasterProcessChannelDecoderReads the bytes from a channel, waiting until the command is read completely or the channel throwsEOFException.
This method is called in a single Thread. The constructor can be called within another thread.- Specified by:
decodein interfaceMasterProcessChannelDecoder- Returns:
- decoded command
- Throws:
IOException- exception in channel
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceMasterProcessChannelDecoder- Throws:
IOException
-