BuildInputStream

class BuildInputStream(workbench: AvailWorkbench) : ByteArrayInputStream

BuildInputStream satisfies reads from the UI's input field. It blocks reads unless some data is available.

Constructors

Link copied to clipboard
fun BuildInputStream(workbench: AvailWorkbench)

Construct a new BuildInputStream.

Functions

Link copied to clipboard
open override fun available(): Int
Link copied to clipboard
fun clear()

Clear the input stream. All pending data is discarded and the stream position is reset to zero (0).

Link copied to clipboard
open override fun close()
Link copied to clipboard
fun feedbackForCommand(commandText: String)

The specified command string was just entered. Present it in the StreamStyle.COMMAND style. Force an extra leading new line to keep the text area from looking stupid. Also end with a new line. The passed command should not itself have a new line included.

Link copied to clipboard
open override fun mark(readAheadLimit: Int)
Link copied to clipboard
open override fun markSupported(): Boolean
Link copied to clipboard
open override fun read(): Int
open fun read(p0: ByteArray): Int
open override fun read(    readBuffer: ByteArray?,     start: Int,     requestSize: Int): Int
Link copied to clipboard
open override fun readAllBytes(): ByteArray
Link copied to clipboard
open fun readNBytes(p0: Int): ByteArray
open override fun readNBytes(    p0: ByteArray,     p1: Int,     p2: Int): Int
Link copied to clipboard
open override fun reset()
Link copied to clipboard
open override fun skip(p0: Long): Long
Link copied to clipboard
open fun skipNBytes(p0: Long)
Link copied to clipboard
open override fun transferTo(p0: OutputStream): Long
Link copied to clipboard
fun update()

Update the content of the stream with data from the input field.