org.codehaus.activemq.util
Class FastInputStream

java.lang.Object
  extended byjava.io.InputStream
      extended byjava.io.FilterInputStream
          extended byorg.codehaus.activemq.util.FastInputStream

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 $

Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
FastInputStream(byte[] data)
           
 
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-2005 Protique, Ltd.. All Rights Reserved.