Class CommandEncoder
java.lang.Object
org.apache.maven.surefire.api.stream.AbstractStreamEncoder<org.apache.maven.surefire.api.booter.MasterProcessCommand>
org.apache.maven.surefire.stream.CommandEncoder
- All Implemented Interfaces:
AutoCloseable
public class CommandEncoder
extends org.apache.maven.surefire.api.stream.AbstractStreamEncoder<org.apache.maven.surefire.api.booter.MasterProcessCommand>
implements AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected final byte[]enumToByteArray(org.apache.maven.surefire.api.booter.MasterProcessCommand masterProcessCommand) protected final Charsetprotected final byte[]protected final byte[]protected final CharsetEncodervoidvoidsendNoop()voidsendRunClass(String testClassName) voidsendShutdown(String shutdownData) voidvoidMethods inherited from class org.apache.maven.surefire.api.stream.AbstractStreamEncoder
encode, encode, encodeCharset, encodeHeader, encodeHeader, encodeInteger, encodeString, estimateBufferLength, write
-
Constructor Details
-
CommandEncoder
-
-
Method Details
-
sendRunClass
- Throws:
IOException
-
sendTestSetFinished
- Throws:
IOException
-
sendSkipSinceNextTest
- Throws:
IOException
-
sendShutdown
- Throws:
IOException
-
sendNoop
- Throws:
IOException
-
sendByeAck
- Throws:
IOException
-
getEncodedMagicNumber
- Specified by:
getEncodedMagicNumberin classorg.apache.maven.surefire.api.stream.AbstractStreamEncoder<org.apache.maven.surefire.api.booter.MasterProcessCommand>
-
enumToByteArray
@Nonnull protected final byte[] enumToByteArray(org.apache.maven.surefire.api.booter.MasterProcessCommand masterProcessCommand) - Specified by:
enumToByteArrayin classorg.apache.maven.surefire.api.stream.AbstractStreamEncoder<org.apache.maven.surefire.api.booter.MasterProcessCommand>
-
getEncodedCharsetName
- Specified by:
getEncodedCharsetNamein classorg.apache.maven.surefire.api.stream.AbstractStreamEncoder<org.apache.maven.surefire.api.booter.MasterProcessCommand>
-
getCharset
-
newCharsetEncoder
- Specified by:
newCharsetEncoderin classorg.apache.maven.surefire.api.stream.AbstractStreamEncoder<org.apache.maven.surefire.api.booter.MasterProcessCommand>
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-