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
- All
Instance Constructors
-
new
FailAfterByteArrayOutputStream(failAfter: Int)(initialSize: Int = Math.min(32, failAfter))
- failAfter
Sets the boundary after which a
writewill 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[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
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: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
flush(): Unit
- Definition Classes
- OutputStream → Flushable
- Annotations
- @throws( classOf[java.io.IOException] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
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: String): String
- Definition Classes
- ByteArrayOutputStream
- Annotations
- @throws( ... )
-
def
toString(): String
- Definition Classes
- ByteArrayOutputStream → AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
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( ... )
-
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
failAfterwas (already) passed.Writes the given byte value to the underlying array and then checks if the given boundary
failAfterwas (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
writeTo(arg0: OutputStream): Unit
- Definition Classes
- ByteArrayOutputStream
- Annotations
- @throws( classOf[java.io.IOException] )
Deprecated Value Members
-
def
toString(arg0: Int): String
- Definition Classes
- ByteArrayOutputStream
- Annotations
- @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.