com.espertech.esper.util
Class SimpleByteArrayInputStream

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

public class SimpleByteArrayInputStream
extends java.io.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 java.io.InputStream

read

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

read

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

skip

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

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com