Click or drag to resize
TextInput Methods

The TextInput type exposes the following members.

Methods
  NameDescription
Public methodClose
Closes the input stream
Public methodHasNextBool
Checks if there is a bool value (1, 0, true or false) from the input stream
Public methodHasNextChar
Check if there is a char from the coming stream
Public methodHasNextDouble
Check if there is a double token from the coming stream
Public methodHasNextInt
Check if there is an integer token from the coming stream
Public methodHasNextLine
Check if there is a line, which is essentially a sequence of any characters
Public methodHasNextString
Checks if there is a space-delimited string from the stream
Public methodStatic memberMainTest
Demo test for the TextInput data type. The test shows the methods' behavior and how to use them.
Public methodReadAll
Read all characters from the steam into a string
Public methodReadAllDoubles
Reads all doubles from the input stream as an array of doubles
Public methodReadAllInts
Reads all integers from the input stream as an array of integers
Public methodReadAllStrings
Reads all space-delimited strings from the input stream as an array of strings
Public methodReadBool
Reads a bool value (1, 0, true or false, case-insensitive) from the input stream
Public methodReadChar
Reads a char from the stream
Public methodReadDouble
Reads a double from the stream
Public methodReadInt
Reads an integer from the stream
Public methodReadLine
Read a whole new line, discarding unprocessed strings in the previous line
Public methodReadString
Reads a space-delimited string from the stream
Top
See Also