|
|||||||||
| Home >> All >> org >> mortbay >> [ util overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.mortbay.util
Class ByteArrayPool

java.lang.Objectorg.mortbay.util.ByteArrayPool
- public class ByteArrayPool
- extends java.lang.Object
Byte Array Pool Simple pool for recycling byte arrays of a fixed size.
- Version:
- $Id: ByteArrayPool.java,v 1.8 2003/07/19 06:37:12 gregwilkins Exp $
| Nested Class Summary | |
private static class |
ByteArrayPool.BAThreadLocal
|
| Field Summary | |
static int |
__POOL_SIZE
|
static java.lang.ThreadLocal |
__pools
|
static int |
__slot
|
| Constructor Summary | |
ByteArrayPool()
|
|
| 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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
__POOL_SIZE
public static final int __POOL_SIZE
__pools
public static final java.lang.ThreadLocal __pools
__slot
public static int __slot
| Constructor Detail |
ByteArrayPool
public ByteArrayPool()
| Method Detail |
getByteArray
public static byte[] getByteArray(int size)
- Get a byte array from the pool of known size.
getByteArrayAtLeast
public static byte[] getByteArrayAtLeast(int minSize)
returnByteArray
public static void returnByteArray(byte[] b)
|
|||||||||
| Home >> All >> org >> mortbay >> [ util overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.mortbay.util.ByteArrayPool