Class AbstractStreamDecoder.BufferedStream

java.lang.Object
org.apache.maven.surefire.api.stream.AbstractStreamDecoder.BufferedStream
Enclosing class:
AbstractStreamDecoder<M,MT extends Enum<MT>,ST extends Enum<ST>>

public final class AbstractStreamDecoder.BufferedStream extends Object
This class avoids locking which gains the performance of this decoder.
  • 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

      public void write(ByteBuffer bb, int position, int length)
    • clear

      public void clear()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • isEmpty

      private boolean isEmpty()
    • ensureCapacity

      private void ensureCapacity(int addCapacity)
    • printExistingLine

      void printExistingLine()
    • isJvmError

      private boolean isJvmError(String line)