OutputStream

replpp.shaded.os.SubProcess$.OutputStream
class OutputStream(val wrapped: InputStream) extends InputStream, DataInput, 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

Attributes

Graph
Supertypes
trait ByteData
trait DataInput
class InputStream
trait Closeable
trait AutoCloseable
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def bytes: Array[Byte]
override def close(): Unit

Attributes

Definition Classes
InputStream -> Closeable -> AutoCloseable
def read(): Int
override def read(b: Array[Byte]): Int

Attributes

Definition Classes
InputStream
override def read(b: Array[Byte], off: Int, len: Int): Int

Attributes

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 readUnsignedShort(): Int
def skipBytes(n: Int): Int

Inherited methods

def available(): Int

Attributes

Inherited from:
InputStream
def lines(codec: Codec): Vector[String]

Attributes

Inherited from:
ByteData
def lines(): Vector[String]

Attributes

Inherited from:
ByteData
def mark(x$0: Int): Unit

Attributes

Inherited from:
InputStream
def markSupported(): Boolean

Attributes

Inherited from:
InputStream
def readAllBytes(): Array[Byte]

Attributes

Inherited from:
InputStream
def readNBytes(x$0: Int): Array[Byte]

Attributes

Inherited from:
InputStream
def readNBytes(x$0: Array[Byte], x$1: Int, x$2: Int): Int

Attributes

Inherited from:
InputStream
def reset(): Unit

Attributes

Inherited from:
InputStream
def skip(x$0: Long): Long

Attributes

Inherited from:
InputStream
def text(codec: Codec): String

Attributes

Inherited from:
ByteData
def text(): String

Attributes

Inherited from:
ByteData
def transferTo(x$0: OutputStream): Long

Attributes

Inherited from:
InputStream
def trim(codec: Codec): String

Attributes

Inherited from:
ByteData
def trim(): String

Attributes

Inherited from:
ByteData

Concrete fields

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