Class MemoryInputStream
└
Object
An InputStream
which reads from a String
.
- Source Code:
- View Source
Initializer Summary
Inherited Fields:
Instance Method Summary
Inherited Methods:
close():Error?
lines():Iterator<String>
sendTo(OutputStream):Maybe<Int>
readLine():String?
readFully():Array<UInt8>
readFully():String
read(Pointer<Char8>, Int):Int
read(Pointer<Int8>, Int):Int
read(Pointer<UInt8>, Int):Int
read():Char8?
read():Int64?
read():Int32?
read():Int16?
read():Int8?
read():UInt64?
read():UInt32?
read():UInt16?
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