frost.io

Class MemoryInputStream

    └ InputStream
         └ Object

An InputStream which reads from a String.

Source Code:
View Source

Initializer Summary

init(source:String)
Creates a new MemoryInputStream which reads from a String.
Inherited Fields:

Instance Method Summary

read():UInt8?
Reads and returns a single byte.
Inherited Methods:

Initializers

init (source:String)

Creates a new MemoryInputStream which reads from a String.

Parameters:
source - the string to read from

Instance Methods

@override
method read ():UInt8?

Reads and returns a single byte. Blocks until at least one byte is available for reading, or returns null if the end of the stream has been reached or in the event of an error.

Overrides:
frost.io.InputStream.read