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.
Value parametersbuffer size (defaults to Source.DefaultBufSize)
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 input stream from which to read
a () => Source which resets the stream (if unset, reset() will throw an Exception)
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 a Source instance from a single character.
Attributescreates Source from array of characters, with empty description.
creates Source from array of characters, with empty description.
Attributescreates Source from file with given name, setting its description to filename.
creates Source from file with given name, setting its description to filename.
Attributescreates Source from file with given name, using given encoding, setting its description to filename.
creates Source from file with given name, using given encoding, setting its description to filename.
Attributescreates source
from file with given file URI
.
creates source
from file with given file URI
.
creates Source from file with given file: URI
creates Source from file with given file: URI
Attributescreates Source from file, using default character encoding, setting its description to filename.
creates Source from file, using default character encoding, setting its description to filename.
Attributessame as fromFile(file, enc, Source.DefaultBufSize)
same as fromFile(file, enc, Source.DefaultBufSize)
AttributesCreates 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
.
Creates a Source from an Iterable.
Creates a Source from an Iterable.
Value parametersthe Iterable
the Source
Reads data from a classpath resource, using either a context classloader (default) or a passed one.
Reads data from a classpath resource, using either a context classloader (default) or a passed one.
Value parametersclassloader to be used, or context classloader if not specified
name of the resource to load from the classpath
the buffered source
creates Source from a String, with no description.
creates Source from a String, with no description.
Attributescreates Source
from file with given file: URI
creates Source
from file with given file: URI
same as fromURL(new URL(s))(Codec(enc))
same as fromURL(new URL(s))(Codec(enc))
Attributessame as fromURL(new URL(s))
same as fromInputStream(url.openStream())(Codec(enc))
same as fromInputStream(url.openStream())(Codec(enc))
Attributessame as fromInputStream(url.openStream())(codec)
same as fromInputStream(url.openStream())(codec)
AttributesCreates a Source
from System.in.
Creates a Source
from System.in.
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.)
[Since version 2.13.9]
Use `fromBytes` and specify an encoding
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4