class OutputStream extends java.io.InputStream with DataInput with StreamValue
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
- Alphabetic
- By Inheritance
- OutputStream
- StreamValue
- DataInput
- InputStream
- Closeable
- AutoCloseable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new OutputStream(wrapped: java.io.InputStream, bufferSize: Int = 8192)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
available(): Int
- Definition Classes
- InputStream
- Annotations
- @throws( classOf[java.io.IOException] )
-
def
bytes(): Array[Byte]
Read all bytes from this pipe from the subprocess, blocking until it is complete, and returning it as a byte array
Read all bytes from this pipe from the subprocess, blocking until it is complete, and returning it as a byte array
- Definition Classes
- OutputStream → StreamValue
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate() @throws( ... )
-
def
close(): Unit
- Definition Classes
- OutputStream → InputStream → Closeable → AutoCloseable
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
lines(codec: Codec): Vector[String]
- Definition Classes
- StreamValue
-
def
lines: Vector[String]
- Definition Classes
- StreamValue
-
def
mark(arg0: Int): Unit
- Definition Classes
- InputStream
-
def
markSupported(): Boolean
- Definition Classes
- InputStream
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
read(b: Array[Byte], offset: Int, len: Int): Int
- Definition Classes
- OutputStream → InputStream
-
def
read(b: Array[Byte]): Int
- Definition Classes
- OutputStream → InputStream
-
def
read(): Int
- Definition Classes
- OutputStream → InputStream
-
def
readAllBytes(): Array[Byte]
- Definition Classes
- InputStream
- Annotations
- @throws( classOf[java.io.IOException] )
-
def
readBoolean(): Boolean
- Definition Classes
- OutputStream → DataInput
-
def
readByte(): Byte
- Definition Classes
- OutputStream → DataInput
-
def
readChar(): Char
- Definition Classes
- OutputStream → DataInput
-
def
readDouble(): Double
- Definition Classes
- OutputStream → DataInput
-
def
readFloat(): Float
- Definition Classes
- OutputStream → DataInput
-
def
readFully(b: Array[Byte]): Unit
- Definition Classes
- OutputStream → DataInput
-
def
readFully(b: Array[Byte], off: Int, len: Int): Unit
- Definition Classes
- OutputStream → DataInput
-
def
readInt(): Int
- Definition Classes
- OutputStream → DataInput
-
def
readLine(): String
- Definition Classes
- OutputStream → DataInput
-
def
readLine(charSet: Charset = StandardCharsets.UTF_8): String
Read a single line from the stream, as a string.
Read a single line from the stream, as a string. A line is ended by \n, \r or \r\n. The returned string does *not* return the trailing delimiter.
-
def
readLong(): Long
- Definition Classes
- OutputStream → DataInput
-
def
readNBytes(arg0: Array[Byte], arg1: Int, arg2: Int): Int
- Definition Classes
- InputStream
- Annotations
- @throws( classOf[java.io.IOException] )
-
def
readNBytes(arg0: Int): Array[Byte]
- Definition Classes
- InputStream
- Annotations
- @throws( classOf[java.io.IOException] )
-
def
readShort(): Short
- Definition Classes
- OutputStream → DataInput
-
def
readUTF(): String
- Definition Classes
- OutputStream → DataInput
-
def
readUnsignedByte(): Int
- Definition Classes
- OutputStream → DataInput
-
def
readUnsignedShort(): Int
- Definition Classes
- OutputStream → DataInput
-
def
reset(): Unit
- Definition Classes
- InputStream
- Annotations
- @throws( classOf[java.io.IOException] )
-
def
skip(arg0: Long): Long
- Definition Classes
- InputStream
- Annotations
- @throws( classOf[java.io.IOException] )
-
def
skipBytes(n: Int): Int
- Definition Classes
- OutputStream → DataInput
-
def
string(codec: Codec): String
- Definition Classes
- StreamValue
-
def
string: String
- Definition Classes
- StreamValue
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
transferTo(arg0: java.io.OutputStream): Long
- Definition Classes
- InputStream
- Annotations
- @throws( classOf[java.io.IOException] )
-
def
trim(codec: Codec): String
- Definition Classes
- StreamValue
-
def
trim: String
- Definition Classes
- StreamValue
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- val wrapped: java.io.InputStream