frost.io

Class Console

    └ Object

Provides access to the standard input, output, and error streams.

Source Code:
View Source

Class Method Summary

inputStream():InputStream
Returns the standard input stream.
outputStream():OutputStream
Returns the standard output stream.
errorStream():OutputStream
Returns the standard error stream.
print(s:String)
Prints a string to the standard output stream.
printLine(s:String)
Prints a string followed by a newline to the standard output stream.
print(o:Object)
Prints the string represention of an object to the standard output stream.
printLine(o:Object)
Prints the string represention of an object followed by a newline to the standard output stream.
printLine()
Prints a newline to the standard output stream.
printError(s:String)
Prints a string to the standard error stream.
printErrorLine(s:String)
Prints a string followed by a newline to the standard error stream.
printError(o:Object)
Prints the string represention of an object to the standard error stream.
printErrorLine(o:Object)
Prints the string represention of an object followed by a newline to the standard error stream.
printErrorLine()
Prints a newline to the standard error stream.
read():Char8?
Reads a single byte from the standard input stream.
readLine():String?
Reads a line of text from the standard input stream.
Inherited Fields:

Class Methods

@class
function inputStream ():InputStream

Returns the standard input stream.

@class
function outputStream ():OutputStream

Returns the standard output stream.

@class
function errorStream ():OutputStream

Returns the standard error stream.

@class
method print (s:String)

Prints a string to the standard output stream.

Parameters:
s - value of type String
@class
method printLine (s:String)

Prints a string followed by a newline to the standard output stream.

Parameters:
s - value of type String
@class
method print (o:Object)

Prints the string represention of an object to the standard output stream.

Parameters:
o - value of type Object
@class
method printLine (o:Object)

Prints the string represention of an object followed by a newline to the standard output stream.

Parameters:
o - value of type Object
@class
method printLine ()

Prints a newline to the standard output stream.

@class
method printError (s:String)

Prints a string to the standard error stream.

Parameters:
s - value of type String
@class
method printErrorLine (s:String)

Prints a string followed by a newline to the standard error stream.

Parameters:
s - value of type String
@class
method printError (o:Object)

Prints the string represention of an object to the standard error stream.

Parameters:
o - value of type Object
@class
method printErrorLine (o:Object)

Prints the string represention of an object followed by a newline to the standard error stream.

Parameters:
o - value of type Object
@class
method printErrorLine ()

Prints a newline to the standard error stream.

@class
method read ():Char8?

Reads a single byte from the standard input stream. Returns null if the end of the stream has been reached.

@class
method readLine ():String?

Reads a line of text from the standard input stream. Returns null if the end of the stream has been reached.