OutputStream

class OutputStream(val wrapped: InputStream) extends InputStream with DataInput with ByteData

A combination BufferedReader and java.io.InputStream, this allows you to read both bytes and lines, without worrying about the buffer used for reading lines messing up your reading of bytes.

Note that all reads that occur through this class are thread-safe and synchronized. If you wish to perform writes without the synchronization overhead, you can use the underlying wrapped stream directly

trait ByteData
trait DataInput
class InputStream
trait Closeable
trait AutoCloseable
class Object
trait Matchable
class Any

Value members

Concrete methods

def bytes: Array[Byte]
override def close(): Unit
Definition Classes
InputStream -> Closeable -> AutoCloseable
def read(): Int
override def read(b: Array[Byte]): Int
Definition Classes
InputStream
override def read(b: Array[Byte], off: Int, len: Int): Int
Definition Classes
InputStream
def readBoolean(): Boolean
def readByte(): Byte
def readChar(): Char
def readDouble(): Double
def readFloat(): Float
def readFully(b: Array[Byte]): Unit
def readFully(b: Array[Byte], off: Int, len: Int): Unit
def readInt(): Int
def readLine(): String
def readLong(): Long
def readShort(): Short
def readUTF(): String
def readUnsignedByte(): Int
def skipBytes(n: Int): Int

Inherited methods

@throws(java.io.IOException)
def available(): Int
Inherited from:
InputStream
def lines(codec: Codec): Vector[String]
Inherited from:
ByteData
def lines(): Vector[String]
Inherited from:
ByteData
def mark(x$0: Int): Unit
Inherited from:
InputStream
def markSupported(): Boolean
Inherited from:
InputStream
@throws(java.io.IOException)
def reset(): Unit
Inherited from:
InputStream
@throws(java.io.IOException)
def skip(x$0: Long): Long
Inherited from:
InputStream
def text(codec: Codec): String
Inherited from:
ByteData
def text(): String
Inherited from:
ByteData
def trim(codec: Codec): String
Inherited from:
ByteData
def trim(): String
Inherited from:
ByteData

Concrete fields

val buffered: BufferedReader
val data: DataInputStream
val wrapped: InputStream