ConsoleReaderOutputStream

public class ConsoleReaderOutputStream
extends Object

java.lang.Object
   ↳ com.android.tradefed.command.console.ConsoleReaderOutputStream


An OutputStream that can be used to make System.out.print() play nice with the user's LineReader unfinishedLine.

In trivial performance tests, this class did not have a measurable performance impact.

Summary

Public constructors

ConsoleReaderOutputStream(LineReader reader)

Public methods

LineReader getConsoleReader()

Get the LineReader instance that we're using internally

void write(byte[] b, int off, int len)

void write(int b)

Public constructors

ConsoleReaderOutputStream

public ConsoleReaderOutputStream (LineReader reader)

Parameters
reader LineReader

Public methods

getConsoleReader

public LineReader getConsoleReader ()

Get the LineReader instance that we're using internally

Returns
LineReader

write

public void write (byte[] b, 
                int off, 
                int len)

Parameters
b byte

off int

len int

write

public void write (int b)

Parameters
b int