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 intprivate booleanprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()private voidensureCapacity(int addCapacity) intprivate booleanisEmpty()private booleanisJvmError(String line) (package private) voidvoidsetPositionByteBuffer(int positionByteBuffer) toString()voidwrite(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
-