Class AbstractStreamDecoder.BufferedStream
java.lang.Object
org.apache.maven.surefire.api.stream.AbstractStreamDecoder.BufferedStream
This class avoids locking which gains the performance of this decoder.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate byte[]
private int
private boolean
private int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
private void
ensureCapacity
(int addCapacity) int
private boolean
isEmpty()
private boolean
isJvmError
(String line) (package private) void
void
setPositionByteBuffer
(int positionByteBuffer) toString()
void
write
(ByteBuffer bb, int position, int length)
-
Field Details
-
buffer
private byte[] buffer -
count
private int count -
positionByteBuffer
private int positionByteBuffer -
isNewLine
private boolean isNewLine
-
-
Constructor Details
-
BufferedStream
BufferedStream(int capacity)
-
-
Method Details
-
getPositionByteBuffer
public int getPositionByteBuffer() -
setPositionByteBuffer
public void setPositionByteBuffer(int positionByteBuffer) -
write
-
clear
public void clear() -
toString
-
isEmpty
private boolean isEmpty() -
ensureCapacity
private void ensureCapacity(int addCapacity) -
printExistingLine
void printExistingLine() -
isJvmError
-