org.iids.aos.util
Class MyByteArrayInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.ByteArrayInputStream
          extended by org.iids.aos.util.MyByteArrayInputStream
All Implemented Interfaces:
java.io.Closeable

public class MyByteArrayInputStream
extends java.io.ByteArrayInputStream

Factory class for cacheable ByteArrayInputStream. This class also caches MyByteArrayInputStream instances for better performance.

Author:
Michel Oey

Field Summary
 
Fields inherited from class java.io.ByteArrayInputStream
buf, count, mark, pos
 
Method Summary
static MyByteArrayInputStream getInstance(byte[] b)
           
static void releaseInstance(MyByteArrayInputStream bais)
           
 void reset(byte[] b)
           
 
Methods inherited from class java.io.ByteArrayInputStream
available, close, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.io.InputStream
read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

reset

public void reset(byte[] b)

getInstance

public static MyByteArrayInputStream getInstance(byte[] b)

releaseInstance

public static void releaseInstance(MyByteArrayInputStream bais)


Copyright © 2003, 2004 IIDS Group. All Rights Reserved.