ConsoleReaderOutputStream

public class ConsoleReaderOutputStream
extends OutputStream

java.lang.Object
java.io.OutputStream
  com.android.tradefed.command.console.ConsoleReaderOutputStream


OutputStream ที่ใช้เพื่อให้ System.out.print() ทำงานร่วมกับ LineReader unfinishedLine ของผู้ใช้ได้

ในการทดสอบประสิทธิภาพอย่างง่าย คลาสนี้ไม่มีผลต่อประสิทธิภาพที่วัดได้

สรุป

เครื่องมือสร้างสาธารณะ

ConsoleReaderOutputStream(LineReader reader)

เมธอดสาธารณะ

LineReader getConsoleReader()

รับอินสแตนซ์ LineReader ที่เราใช้ภายใน

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

void write(int b)

เครื่องมือสร้างสาธารณะ

ConsoleReaderOutputStream

public ConsoleReaderOutputStream (LineReader reader)

พารามิเตอร์
reader LineReader

เมธอดสาธารณะ

getConsoleReader

public LineReader getConsoleReader ()

รับอินสแตนซ์ LineReader ที่เราใช้ภายใน

การคืนสินค้า
LineReader

เขียน

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

พารามิเตอร์
b byte

off int

len int

ส่ง
IOException

เขียน

public void write (int b)

พารามิเตอร์
b int

ส่ง
IOException