Package de.frankmuenster.mahoe.utils
Class ClearableByteArrayOutputStream
java.lang.Object
java.io.OutputStream
java.io.ByteArrayOutputStream
de.frankmuenster.mahoe.utils.ClearableByteArrayOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
A ByteArrayOutputStream that allows clearing of he internal byte[] buffer.
- Author:
- Frank Münster
-
Field Summary
Fields inherited from class java.io.ByteArrayOutputStream
buf, count
-
Constructor Summary
ConstructorsConstructorDescriptionReturns a new ClearableByteArrayOutputStream -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Wipes the internal buffer and resets the count to zero.Methods inherited from class java.io.ByteArrayOutputStream
close, reset, size, toByteArray, toString, toString, toString, toString, write, write, writeBytes, writeTo
Methods inherited from class java.io.OutputStream
flush, nullOutputStream, write
-
Constructor Details
-
ClearableByteArrayOutputStream
public ClearableByteArrayOutputStream()Returns a new ClearableByteArrayOutputStream
-
-
Method Details
-
clear
public void clear()Wipes the internal buffer and resets the count to zero.
-