Packages

c

os.SubProcess

OutputStream

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

Linear Supertypes
StreamValue, DataInput, java.io.InputStream, Closeable, AutoCloseable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. OutputStream
  2. StreamValue
  3. DataInput
  4. InputStream
  5. Closeable
  6. AutoCloseable
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new OutputStream(wrapped: java.io.InputStream, bufferSize: Int = 8192)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def available(): Int
    Definition Classes
    InputStream
    Annotations
    @throws( classOf[java.io.IOException] )
  6. 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
  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate() @throws( ... )
  8. def close(): Unit
    Definition Classes
    OutputStream → InputStream → Closeable → AutoCloseable
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. def lines(codec: Codec): Vector[String]
    Definition Classes
    StreamValue
  15. def lines: Vector[String]
    Definition Classes
    StreamValue
  16. def mark(arg0: Int): Unit
    Definition Classes
    InputStream
  17. def markSupported(): Boolean
    Definition Classes
    InputStream
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. def read(b: Array[Byte], offset: Int, len: Int): Int
    Definition Classes
    OutputStream → InputStream
  22. def read(b: Array[Byte]): Int
    Definition Classes
    OutputStream → InputStream
  23. def read(): Int
    Definition Classes
    OutputStream → InputStream
  24. def readAllBytes(): Array[Byte]
    Definition Classes
    InputStream
    Annotations
    @throws( classOf[java.io.IOException] )
  25. def readBoolean(): Boolean
    Definition Classes
    OutputStream → DataInput
  26. def readByte(): Byte
    Definition Classes
    OutputStream → DataInput
  27. def readChar(): Char
    Definition Classes
    OutputStream → DataInput
  28. def readDouble(): Double
    Definition Classes
    OutputStream → DataInput
  29. def readFloat(): Float
    Definition Classes
    OutputStream → DataInput
  30. def readFully(b: Array[Byte]): Unit
    Definition Classes
    OutputStream → DataInput
  31. def readFully(b: Array[Byte], off: Int, len: Int): Unit
    Definition Classes
    OutputStream → DataInput
  32. def readInt(): Int
    Definition Classes
    OutputStream → DataInput
  33. def readLine(): String
    Definition Classes
    OutputStream → DataInput
  34. 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.

  35. def readLong(): Long
    Definition Classes
    OutputStream → DataInput
  36. def readNBytes(arg0: Array[Byte], arg1: Int, arg2: Int): Int
    Definition Classes
    InputStream
    Annotations
    @throws( classOf[java.io.IOException] )
  37. def readNBytes(arg0: Int): Array[Byte]
    Definition Classes
    InputStream
    Annotations
    @throws( classOf[java.io.IOException] )
  38. def readShort(): Short
    Definition Classes
    OutputStream → DataInput
  39. def readUTF(): String
    Definition Classes
    OutputStream → DataInput
  40. def readUnsignedByte(): Int
    Definition Classes
    OutputStream → DataInput
  41. def readUnsignedShort(): Int
    Definition Classes
    OutputStream → DataInput
  42. def reset(): Unit
    Definition Classes
    InputStream
    Annotations
    @throws( classOf[java.io.IOException] )
  43. def skip(arg0: Long): Long
    Definition Classes
    InputStream
    Annotations
    @throws( classOf[java.io.IOException] )
  44. def skipBytes(n: Int): Int
    Definition Classes
    OutputStream → DataInput
  45. def string(codec: Codec): String
    Definition Classes
    StreamValue
  46. def string: String
    Definition Classes
    StreamValue
  47. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  48. def toString(): String
    Definition Classes
    AnyRef → Any
  49. def transferTo(arg0: java.io.OutputStream): Long
    Definition Classes
    InputStream
    Annotations
    @throws( classOf[java.io.IOException] )
  50. def trim(codec: Codec): String
    Definition Classes
    StreamValue
  51. def trim: String
    Definition Classes
    StreamValue
  52. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  53. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  54. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  55. val wrapped: java.io.InputStream

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from StreamValue

Inherited from DataInput

Inherited from java.io.InputStream

Inherited from Closeable

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped