class TextInput
Modifiers | Return Types | Method and Description |
---|---|---|
public |
() |
destroy() |
Modifiers | Return Types | Method and Description |
---|---|---|
public |
() |
close() Close underlying reader, if possible. |
public readonly |
(TextInput) |
copy(AddressMap addresses) |
public |
(ubyte, boolean) |
readByte() Reads the next byte from |
public |
(code, boolean) |
readCode() Reads the next UTF-8 code point from |
public |
(double) |
readDouble() Reads the next white-spaced delimited text from |
public |
(int) |
readInt() Reads the next white-spaced delimited text from |
public |
(String, boolean) |
readLine() Reads the next line of text from the underlying reader, stopping when a new line or line feed character is reached. |
public |
(String, boolean) |
readString() Reads the next white-spaced delimited text from the underlying reader, stopping when a space, a tab, a new line, or a line feed character is reached. |
public create(CanRead reader) => ()
public destroy() => ()
public close() => ()
Close underlying reader, if possible.
public readonly copy(AddressMap addresses) => (TextInput)
public readByte() => (ubyte, boolean)
Reads the next byte from stdin
.
next byte
true
if the end of the file was reached
public readCode() => (code, boolean)
Reads the next UTF-8 code point from stdin
.
character as a code
true
if the end of the file was reached
public readDouble() => (double)
Reads the next white-spaced delimited text from stdin
and converts that value to a double
.
text converted to double
NumberFormatException
- if the text does not represent a legal double
public readInt() => (int)
Reads the next white-spaced delimited text from stdin
and converts that value to an int
.
text converted to int
NumberFormatException
- if the text does not represent a legal int