Package org.eclipse.jetty.util
Class ByteArrayOutputStream2
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.ByteArrayOutputStream
-
- org.eclipse.jetty.util.ByteArrayOutputStream2
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public class ByteArrayOutputStream2 extends ByteArrayOutputStream
ByteArrayOutputStream with public internals
-
-
Field Summary
-
Fields inherited from class java.io.ByteArrayOutputStream
buf, count
-
-
Constructor Summary
Constructors Constructor Description ByteArrayOutputStream2()ByteArrayOutputStream2(int size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getBuf()intgetCount()voidreset(int minSize)voidsetCount(int count)StringtoString(Charset charset)voidwriteUnchecked(int b)-
Methods inherited from class java.io.ByteArrayOutputStream
close, reset, size, toByteArray, toString, toString, toString, write, write, writeBytes, writeTo
-
Methods inherited from class java.io.OutputStream
flush, nullOutputStream, write
-
-
-
-
Method Detail
-
getBuf
public byte[] getBuf()
-
getCount
public int getCount()
-
setCount
public void setCount(int count)
-
reset
public void reset(int minSize)
-
writeUnchecked
public void writeUnchecked(int b)
-
toString
public String toString(Charset charset)
- Overrides:
toStringin classByteArrayOutputStream
-
-