class FailAfterByteArrayOutputStream extends ByteArrayOutputStream
A java.io.ByteArrayOutputStream
that throws an IOException
after writing
some bytes, if the given boundary (failAfter
) is surpassed.
- Alphabetic
- By Inheritance
- FailAfterByteArrayOutputStream
- ByteArrayOutputStream
- OutputStream
- Flushable
- Closeable
- AutoCloseable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new FailAfterByteArrayOutputStream(failAfter: Int)(initialSize: Int = Math.min(32, failAfter))
- failAfter
Sets the boundary after which a
write
will throw an exception.- initialSize
Sets the initial size of the array used to the store the content. This serves optimization purposes only.
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 clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def close(): Unit
- Definition Classes
- ByteArrayOutputStream → OutputStream → Closeable → AutoCloseable
- Annotations
- @throws(classOf[java.io.IOException])
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def flush(): Unit
- Definition Classes
- OutputStream → Flushable
- Annotations
- @throws(classOf[java.io.IOException])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def reset(): Unit
- Definition Classes
- ByteArrayOutputStream
- def size(): Int
- Definition Classes
- ByteArrayOutputStream
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toByteArray(): Array[Byte]
- Definition Classes
- ByteArrayOutputStream
- def toString(arg0: Charset): String
- Definition Classes
- ByteArrayOutputStream
- def toString(arg0: String): String
- Definition Classes
- ByteArrayOutputStream
- Annotations
- @throws(classOf[java.io.UnsupportedEncodingException])
- def toString(): String
- Definition Classes
- ByteArrayOutputStream → AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def write(b: Array[Byte], off: Int, len: Int): Unit
Writes the given byte value to the underlying array and then checks if the given boundary
failAfter
was (already) passed.Writes the given byte value to the underlying array and then checks if the given boundary
failAfter
was (already) passed.I.e., the underlying array contains the given values.
- Definition Classes
- FailAfterByteArrayOutputStream → ByteArrayOutputStream → OutputStream
- def write(b: Int): Unit
Writes the given byte value to the underlying array and then checks if the given boundary (
failAfter
) was (already) passed.Writes the given byte value to the underlying array and then checks if the given boundary (
failAfter
) was (already) passed.I.e., the underlying array contains the given values.
- Definition Classes
- FailAfterByteArrayOutputStream → ByteArrayOutputStream → OutputStream
- def write(arg0: Array[Byte]): Unit
- Definition Classes
- OutputStream
- Annotations
- @throws(classOf[java.io.IOException])
- def writeBytes(arg0: Array[Byte]): Unit
- Definition Classes
- ByteArrayOutputStream
- def writeTo(arg0: OutputStream): Unit
- Definition Classes
- ByteArrayOutputStream
- Annotations
- @throws(classOf[java.io.IOException])