com.twilight.h264.util
Class BufferedInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by com.twilight.h264.util.FilterInputStream
          extended by com.twilight.h264.util.BufferedInputStream
All Implemented Interfaces:
Closeable

public class BufferedInputStream
extends FilterInputStream


Field Summary
protected  byte[] buf
           
protected  int count
           
protected  int markLimit
           
protected  int markPos
           
protected  int pos
           
 
Fields inherited from class com.twilight.h264.util.FilterInputStream
inputStream
 
Constructor Summary
BufferedInputStream(InputStream is)
           
BufferedInputStream(InputStream is, int size)
           
 
Method Summary
 int available()
           
 void close()
           
 void mark(int readLimit)
           
 boolean markSupported()
           
 int read()
           
 int read(byte[] buffer, int offset, int length)
           
 void reset()
           
 long skip(long amount)
           
 
Methods inherited from class com.twilight.h264.util.FilterInputStream
read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buf

protected volatile byte[] buf

count

protected int count

markLimit

protected int markLimit

markPos

protected int markPos

pos

protected int pos
Constructor Detail

BufferedInputStream

public BufferedInputStream(InputStream is)

BufferedInputStream

public BufferedInputStream(InputStream is,
                           int size)
Method Detail

available

public int available()
              throws IOException
Overrides:
available in class FilterInputStream
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Overrides:
close in class FilterInputStream
Throws:
IOException

mark

public void mark(int readLimit)
Overrides:
mark in class FilterInputStream

markSupported

public boolean markSupported()
Overrides:
markSupported in class FilterInputStream

read

public int read()
         throws IOException
Overrides:
read in class FilterInputStream
Throws:
IOException

read

public int read(byte[] buffer,
                int offset,
                int length)
         throws IOException
Overrides:
read in class FilterInputStream
Throws:
IOException

reset

public void reset()
           throws IOException
Overrides:
reset in class FilterInputStream
Throws:
IOException

skip

public long skip(long amount)
          throws IOException
Overrides:
skip in class FilterInputStream
Throws:
IOException


Copyright © 2013. All Rights Reserved.