Reads data from inputStream with a buffered reader, using the encoding in implicit parameter codec.
Reads data from inputStream with a buffered reader, using the encoding in implicit parameter codec.
the input stream from which to read
buffer size (defaults to Source.DefaultBufSize)
a () => Source which resets the stream (if unset, reset() will throw an Exception)
a () => Unit method which closes the stream (if unset, close() will do nothing)
(implicit) a scala.io.Codec specifying behavior (defaults to Codec.default)
the buffered source
Create a Source
from array of bytes, decoding
the bytes according to codec.
Create a Source
from array of bytes, decoding
the bytes according to codec.
the created Source
instance.
Creates a Source instance from a single character.
creates Source from array of characters, with empty description.
Creates Source from file
, using given character encoding, setting
its description to filename.
Creates Source from file
, using given character encoding, setting
its description to filename. Input is buffered in a buffer of size
bufferSize
.
same as fromFile(file, enc, Source.
same as fromFile(file, enc, Source.DefaultBufSize)
creates Source from file, using default character encoding, setting its description to filename.
creates Source from file with given file: URI
creates ource
from file with given file URI
.
creates Source from file with given name, using given encoding, setting its description to filename.
creates Source from file with given name, setting its description to filename.
Creates a Source from an Iterable.
Creates a Source from an Iterable.
the Iterable
the Source
Create a Source
from array of bytes, assuming
one byte per character (ISO-8859-1 encoding.
Create a Source
from array of bytes, assuming
one byte per character (ISO-8859-1 encoding.)
creates Source from a String, with no description.
creates Source
from file with given file: URI
same as fromInputStream(url.
same as fromInputStream(url.openStream())(codec)
same as fromInputStream(url.
same as fromInputStream(url.openStream())(Codec(enc))
same as fromURL(new URL(s))
same as fromURL(new URL(s))(Codec(enc))
Creates a Source
from System.
Creates a Source
from System.in.
This object provides convenience methods to create an iterable representation of a source file.
1.0, 19/08/2004