public class

ByteBufferOutputStream

extends OutputStream
java.lang.Object
   ↳ java.io.OutputStream
     ↳ org.andengine.util.adt.io.out.ByteBufferOutputStream

Class Overview

TODO Instead of having mMaximumGrow there could be some kind of AllocationStrategy object. (c) Zynga 2011

Summary

Fields
protected int mCount
protected byte[] mData
protected final int mMaximumGrow
Public Constructors
ByteBufferOutputStream(int pInitialCapacity, int pMaximumGrow)
Public Methods
void close()
ByteBuffer toByteBuffer()
void write(byte[] pData, int pOffset, int pLength)
void write(int pByte)
[Expand]
Inherited Methods
From class java.io.OutputStream
From class java.lang.Object
From interface java.io.Closeable
From interface java.io.Flushable

Fields

protected int mCount

protected byte[] mData

protected final int mMaximumGrow

Public Constructors

public ByteBufferOutputStream (int pInitialCapacity, int pMaximumGrow)

Public Methods

public void close ()

Throws
IOException

public ByteBuffer toByteBuffer ()

public void write (byte[] pData, int pOffset, int pLength)

public void write (int pByte)