Package org.apache.maven.surefire.stream
Class EventDecoder
java.lang.Object
org.apache.maven.surefire.api.stream.AbstractStreamDecoder<Event,ForkedProcessEventType,SegmentType>
org.apache.maven.surefire.stream.EventDecoder
- All Implemented Interfaces:
AutoCloseable
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.maven.surefire.api.stream.AbstractStreamDecoder
AbstractStreamDecoder.BufferedStream, AbstractStreamDecoder.MalformedFrameException, AbstractStreamDecoder.Memento, AbstractStreamDecoder.Segment, AbstractStreamDecoder.StreamReadStatus
-
Field Summary
Fields inherited from class org.apache.maven.surefire.api.stream.AbstractStreamDecoder
BUFFER_SIZE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected void
debugStream
(byte[] array, int position, int remaining) protected final byte[]
protected final SegmentType[]
nextSegmentType
(ForkedProcessEventType eventType) protected final Event
toMessage
(ForkedProcessEventType eventType, AbstractStreamDecoder<Event, ForkedProcessEventType, SegmentType>.Memento memento) Methods inherited from class org.apache.maven.surefire.api.stream.AbstractStreamDecoder
checkArguments, checkDelimiter, checkHeader, getArguments, printRemainingStream, read, readByte, readCharset, readInt, readInteger, readLong, readLongPrivate, readMessageType, readSegment, readString
-
Constructor Details
-
EventDecoder
-
-
Method Details
-
decode
public Event decode(@Nonnull AbstractStreamDecoder<Event, ForkedProcessEventType, throws IOExceptionSegmentType>.Memento memento) - Specified by:
decode
in classAbstractStreamDecoder<Event,
ForkedProcessEventType, SegmentType> - Throws:
IOException
-
getEncodedMagicNumber
- Specified by:
getEncodedMagicNumber
in classAbstractStreamDecoder<Event,
ForkedProcessEventType, SegmentType>
-
nextSegmentType
- Specified by:
nextSegmentType
in classAbstractStreamDecoder<Event,
ForkedProcessEventType, SegmentType>
-
toMessage
@Nonnull protected final Event toMessage(@Nonnull ForkedProcessEventType eventType, @Nonnull AbstractStreamDecoder<Event, ForkedProcessEventType, throws AbstractStreamDecoder.MalformedFrameExceptionSegmentType>.Memento memento) - Specified by:
toMessage
in classAbstractStreamDecoder<Event,
ForkedProcessEventType, SegmentType> - Throws:
AbstractStreamDecoder.MalformedFrameException
-
debugStream
protected void debugStream(byte[] array, int position, int remaining) - Overrides:
debugStream
in classAbstractStreamDecoder<Event,
ForkedProcessEventType, SegmentType>
-
close
- Throws:
IOException
-