|
|
Scala 2.3.3
|
object
Source
extends java.lang.Object
with scala.ScalaObject
| Constructor Summary | |
def
this
|
|
| Def Summary | |
def
fromBytes
(bytes: scala.Array[scala.Byte])
: scala.io.Source
Creates a Source instance from the given array of bytes,
with empty description.
|
|
def
fromBytes
(bytes: scala.Array[scala.Byte], enc: java.lang.String)
: scala.io.Source
Creates Source from array of bytes with given encoding, with empty description. |
|
def
fromChar
(c: scala.Char)
: scala.io.Source
Creates a Source instance from a single character.
|
|
def
fromChars
(chars: scala.Array[scala.Char])
: scala.io.Source
creates Source from array of characters, with empty description. |
|
def
fromFile
(file: java.io.File)
: scala.io.Source
creates Source from file, using default character encoding, setting its description to filename. |
|
def
fromFile
(file: java.io.File, enc: java.lang.String)
: scala.io.Source
Creates Source from file, using given character encoding, setting its description to filename. |
|
def
fromFile
(name: java.lang.String)
: scala.io.Source
creates Source from file with given name, setting its description to filename. |
|
def
fromFile
(name: java.lang.String, enc: java.lang.String)
: scala.io.Source
creates Source from file with given name, using given encoding, setting its description to filename. |
|
def
fromFile
(uri: java.net.URI)
: scala.io.Source
creates Source from file with given file: URI |
|
def
fromInputStream
(is: java.io.InputStream)
: scala.io.Source
same as fromInputStream(is, "utf-8", None) |
|
def
fromInputStream
(is: java.io.InputStream, enc: java.lang.String)
: scala.io.Source
same as fromInputStream(is, enc, None) |
|
def
fromInputStream
(istream: java.io.InputStream, enc: java.lang.String, maxlen: scala.Option[scala.Int])
: scala.io.Source
reads data from inputstream into a byte array, and calls fromBytes with given encoding. If maxlen is given, reads not more bytes than maxlen. if maxlen was not given, or was <= 0, then whole inputstream is read and closed afterwards. |
|
def
fromString
(s: java.lang.String)
: scala.io.Source
creates Source from string, with empty description. |
|
def
fromURL
(s: java.lang.String)
: scala.io.Source
|
|
def
fromURL
(url: java.net.URL)
: scala.io.Source
|
|
def
setFileDescriptor
(file: java.io.File, s: scala.io.Source)
: scala.io.Source
|
|
| Constructor Detail |
| Def Detail |
def
fromBytes
(bytes: scala.Array[scala.Byte]): scala.io.Source
Source instance from the given array of bytes,
with empty description.bytes - ...
Source instance.
def
fromBytes
(bytes: scala.Array[scala.Byte], enc: java.lang.String): scala.io.Source
bytes - ...
enc - ...
def
fromChar
(c: scala.Char): scala.io.Source
Source instance from a single character.c - ...
Source instance.
def
fromChars
(chars: scala.Array[scala.Char]): scala.io.Source
chars - ...
def
fromFile
(file: java.io.File): scala.io.Source
def
fromFile
(file: java.io.File, enc: java.lang.String): scala.io.Source
file - ...
enc - ...
def
fromFile
(name: java.lang.String): scala.io.Source
def
fromFile
(name: java.lang.String, enc: java.lang.String): scala.io.Source
def
fromFile
(uri: java.net.URI): scala.io.Source
def
fromInputStream
(is: java.io.InputStream): scala.io.Source
def
fromInputStream
(is: java.io.InputStream, enc: java.lang.String): scala.io.Source
def
fromInputStream
(istream: java.io.InputStream, enc: java.lang.String, maxlen: scala.Option[scala.Int]): scala.io.Source
istream - the input stream from which to read
enc - the encoding to apply to the bytes
maxlen - optionally, a positive int specifying maximum number of bytes to read
def
fromString
(s: java.lang.String): scala.io.Source
s - ...
def
fromURL
(s: java.lang.String): scala.io.Source
s - ...
def
fromURL
(url: java.net.URL): scala.io.Source
url - ...
def
setFileDescriptor
(file: java.io.File, s: scala.io.Source): scala.io.Source
file - ...
s - ...