org.activemq.util
Class FastInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by org.activemq.util.FastInputStream
All Implemented Interfaces:
Closeable

public class FastInputStream
extends FilterInputStream

This provides InputStream that delegates to com.sleepycat.util.FastInputStream if it is available and if it is not it delegates to java.io.ByteArrayInputStream. This class allows ActiveMQ to not be dependent on the bdb lib. It might be worth it to just fully implement a FastInputStream ourselfs. I think it's just a ByteArrayInputStream what is not thread safe.

Version:
$Revision: 1.1.1.1 $

Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
FastInputStream(byte[] data)
           
 
Method Summary
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FastInputStream

public FastInputStream(byte[] data)


Copyright © 2004-2010 Protique, Ltd.. All Rights Reserved.