ReadableStreamType
A stream of text. Does as much as possible lazily.
-
Whatever amount of text the stream feels like providing. If the source is a file this will read everything at once.
Declaration
Swift
func readSome () -> String?Return Value
more text from the stream, or nil if we have reached the end.
-
Read everything at once.
Declaration
Swift
func read () -> String -
Lazily split the stream into lines.
Declaration
Swift
func lines () -> SequenceOf<String> -
Enable stream to be used by
println
andtoString
.Declaration
Swift
func writeTo <Target : OutputStreamType> (inout target: Target)
View on GitHub
ReadableStreamType Protocol Reference