net.esper.util
Class SimpleByteArrayInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by net.esper.util.SimpleByteArrayInputStream
All Implemented Interfaces:
Closeable

public class SimpleByteArrayInputStream
extends InputStream

Input stream that relies on a simple byte array, unchecked.


Constructor Summary
SimpleByteArrayInputStream(byte[] buf, int count)
          Ctor.
 
Method Summary
 int available()
           
 int read()
           
 int read(byte[] b, int off, int len)
           
 long skip(long n)
           
 
Methods inherited from class java.io.InputStream
close, mark, markSupported, read, reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleByteArrayInputStream

public SimpleByteArrayInputStream(byte[] buf,
                                  int count)
Ctor.

Parameters:
buf - is the byte buffer
count - is the size of the buffer
Method Detail

available

public final int available()
Overrides:
available in class InputStream

read

public final int read()
Specified by:
read in class InputStream

read

public final int read(byte[] b,
                      int off,
                      int len)
Overrides:
read in class InputStream

skip

public final long skip(long n)
Overrides:
skip in class InputStream

© 2007 EsperTech Inc.
All rights reserved.
Visit us at espertech.com