Package org.eclipse.jetty.util
Class ByteArrayOutputStream2
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.ByteArrayOutputStream
-
- org.eclipse.jetty.util.ByteArrayOutputStream2
-
- All Implemented Interfaces:
java.io.Closeable
,java.io.Flushable
,java.lang.AutoCloseable
public class ByteArrayOutputStream2 extends java.io.ByteArrayOutputStream
ByteArrayOutputStream with public internals
-
-
Constructor Summary
Constructors Constructor Description ByteArrayOutputStream2()
ByteArrayOutputStream2(int size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getBuf()
int
getCount()
void
reset(int minSize)
void
setCount(int count)
java.lang.String
toString(java.nio.charset.Charset charset)
void
writeUnchecked(int b)
-
-
-
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 java.lang.String toString(java.nio.charset.Charset charset)
- Overrides:
toString
in classjava.io.ByteArrayOutputStream
-
-