类 PoolingByteArrayOutputStream
java.lang.Object
java.io.OutputStream
java.io.ByteArrayOutputStream
com.android.volley.toolbox.PoolingByteArrayOutputStream
- 所有已实现的接口:
Closeable,Flushable,AutoCloseable
A variation of
ByteArrayOutputStream that uses a pool of byte[] buffers instead
of always allocating them fresh, saving on heap churn.-
字段概要
从类继承的字段 java.io.ByteArrayOutputStream
buf, count -
构造器概要
构造器构造器说明Constructs a new PoolingByteArrayOutputStream with a default size.PoolingByteArrayOutputStream(ByteArrayPool pool, int size) Constructs a newByteArrayOutputStreamwith a default size ofsizebytes. -
方法概要
从类继承的方法 java.io.ByteArrayOutputStream
reset, size, toByteArray, toString, toString, toString, toString, writeBytes, writeTo从类继承的方法 java.io.OutputStream
flush, nullOutputStream, write
-
构造器详细资料
-
PoolingByteArrayOutputStream
Constructs a new PoolingByteArrayOutputStream with a default size. If more bytes are written to this instance, the underlying byte array will expand. -
PoolingByteArrayOutputStream
Constructs a newByteArrayOutputStreamwith a default size ofsizebytes. If more thansizebytes are written to this instance, the underlying byte array will expand.- 参数:
size- initial size for the underlying byte array. The value will be pinned to a default minimum size.
-
-
方法详细资料
-
close
- 指定者:
close在接口中AutoCloseable- 指定者:
close在接口中Closeable- 覆盖:
close在类中ByteArrayOutputStream- 抛出:
IOException
-
finalize
public void finalize() -
write
public void write(byte[] buffer, int offset, int len) - 覆盖:
write在类中ByteArrayOutputStream
-
write
public void write(int oneByte) - 覆盖:
write在类中ByteArrayOutputStream
-