com.twilight.h264.util
Class PushbackInputStream

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

public class PushbackInputStream
extends FilterInputStream


Field Summary
protected  byte[] buf
           
protected  int pos
           
 
Fields inherited from class com.twilight.h264.util.FilterInputStream
inputStream
 
Constructor Summary
PushbackInputStream(InputStream is)
           
PushbackInputStream(InputStream is, int size)
           
 
Method Summary
 int available()
           
 void close()
           
 void mark(int limit)
           
 boolean markSupported()
           
 int read()
           
 int read(byte[] buffer, int offset, int len)
           
 void reset()
           
 long skip(long count)
           
 void unread(byte[] buffer)
           
 void unread(byte[] buffer, int offset, int length)
           
 void unread(int oneByte)
           
 
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 byte[] buf

pos

protected int pos
Constructor Detail

PushbackInputStream

public PushbackInputStream(InputStream is)

PushbackInputStream

public PushbackInputStream(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

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 len)
         throws IOException
Overrides:
read in class FilterInputStream
Throws:
IOException

skip

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

unread

public void unread(byte[] buffer)
            throws IOException
Throws:
IOException

unread

public void unread(byte[] buffer,
                   int offset,
                   int length)
            throws IOException
Throws:
IOException

unread

public void unread(int oneByte)
            throws IOException
Throws:
IOException

mark

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

reset

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


Copyright © 2013. All Rights Reserved.