org.mortbay.util
public class ByteArrayPool extends Object
Version: $Id: ByteArrayPool.java,v 1.9 2004/05/09 20:32:49 gregwilkins Exp $
| Field Summary | |
|---|---|
| static ThreadLocal | __pools |
| static int | __POOL_SIZE |
| static int | __slot |
| Method Summary | |
|---|---|
| static byte[] | getByteArray(int size) Get a byte array from the pool of known size. |
| static byte[] | getByteArrayAtLeast(int minSize) |
| static void | returnByteArray(byte[] b) |
Parameters: size Size of the byte array.
Returns: Byte array of known size.