IOs

object IOs extends Logging
trait Logging
class Object
trait Matchable
class Any

Value members

Concrete methods

def close(objs: AutoCloseable*): Unit

Close many objects quitely. swallow any exception.

Close many objects quitely. swallow any exception.

def copy(input: InputStream, output: OutputStream): Long

Copy bytes from a InputStream to an OutputStream.

Copy bytes from a InputStream to an OutputStream.

Value Params
input

the InputStream to read from

output

the OutputStream to write to

Returns

the number of bytes copied

Since

3.1

def copy(input: Reader, output: Writer): Long

Copy chars from a Reader to a Writer.

Copy chars from a Reader to a Writer.

Value Params
input

the Reader to read from

output

the Writer to write to

Returns

the number of characters copied

Since

3.1

def readBytes(input: InputStream): Array[Byte]
def readJavaProperties(url: URL): Map[String, String]

Read Java key value properties by url

Read Java key value properties by url

def readJavaProperties(input: InputStream): Map[String, String]

Read java key value properties

Read java key value properties

def readLines(input: Reader): List[String]

Get the contents of a Reader as a list of Strings, one entry per line.

Get the contents of a Reader as a list of Strings, one entry per line.

def readLines(input: InputStream, charset: Charset): List[String]
def readProperties(url: URL): Map[String, String]

Read key value properties

Read key value properties

def readProperties(input: InputStream, charset: Charset): Map[String, String]

Read key value properties

Read key value properties

def readString(input: InputStream, charset: Charset): String
def using[T <: AutoCloseable, R](res: T)(func: T => R): R
def write(data: String, output: OutputStream, charset: Charset): Unit

Inherited fields

protected
Inherited from
Logging