Package com.badlogic.gdx.utils
Class StreamUtils.OptimizedByteArrayOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.ByteArrayOutputStream
-
- com.badlogic.gdx.utils.StreamUtils.OptimizedByteArrayOutputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.io.Flushable
,java.lang.AutoCloseable
- Enclosing class:
- StreamUtils
public static class StreamUtils.OptimizedByteArrayOutputStream extends java.io.ByteArrayOutputStream
A ByteArrayOutputStream which avoids copying of the byte array if possible.
-
-
Constructor Summary
Constructors Constructor Description OptimizedByteArrayOutputStream(int initialSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getBuffer()
byte[]
toByteArray()
-