| java.lang.Object com.caucho.vfs.TempBuffer
TempBuffer | public class TempBuffer (Code) | | Pooled temporary byte buffer.
|
Constructor Summary | |
public | TempBuffer(int size) Create a new TempBuffer. |
SIZE | final public static int SIZE(Code) | | |
_bufferCount | int _bufferCount(Code) | | |
TempBuffer | public TempBuffer(int size)(Code) | | Create a new TempBuffer.
|
allocate | public static TempBuffer allocate()(Code) | | Allocate a TempBuffer, reusing one if available.
|
clear | public void clear()(Code) | | Clears the buffer.
|
getAvailable | public int getAvailable()(Code) | | |
getBuffer | final public byte[] getBuffer()(Code) | | Returns the buffer's underlying byte array.
|
getCapacity | final public int getCapacity()(Code) | | |
getLength | final public int getLength()(Code) | | Returns the number of bytes in the buffer.
|
setLength | final public void setLength(int length)(Code) | | Sets the number of bytes used in the buffer.
|
write | public int write(byte[] buf, int offset, int length)(Code) | | |
|
|