Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.activemq.util
Class FastInputStream  view FastInputStream download FastInputStream.java

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

public class FastInputStream
extends java.io.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
private static java.io.InputStream createInputStream(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)
Method Detail

createInputStream

private static java.io.InputStream createInputStream(byte[] data)