public class ConsoleInputStream implements InputStream
Borrowed binary view of the calling process's standard input. Reads return an available prefix, not necessarily the requested length; zero means end-of-input. No terminal echo or line discipline is changed. ConsoleTextReader shares the same native input buffer, so text read-ahead is retained when switching to binary reads. close() leaves input open.
input = ConsoleInputStream() buffer = Byte[4096] count = input.readInto(buffer)
| Modifier and Type | Member | Description |
|---|---|---|
| public | ConsoleInputStream | Creates a borrowed standard-input view without opening another handle. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | closeclose() as Void |
Leaves standard input open; this borrowed view remains usable. |
| public | readread() as String |
Reads through EOF as strict UTF-8, preserving embedded U+0000 scalars. |
| public | readBytes | Reads one available prefix into a new array; does not wait to fill it. |
| public | readInto | Reads raw bytes into an existing buffer. |