Liferay 6.0.5

com.liferay.portal.kernel.io.unsync
Class UnsyncBufferedInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by com.liferay.portal.kernel.io.unsync.UnsyncFilterInputStream
          extended by com.liferay.portal.kernel.io.unsync.UnsyncBufferedInputStream
All Implemented Interfaces:
Closeable

public class UnsyncBufferedInputStream
extends UnsyncFilterInputStream

See http://issues.liferay.com/browse/LPS-6648.


Field Summary
protected  byte[] buffer
           
protected  int firstInvalidIndex
           
protected  int index
           
protected  int markIndex
           
protected  int markLimit
           
 
Fields inherited from class com.liferay.portal.kernel.io.unsync.UnsyncFilterInputStream
inputStream
 
Constructor Summary
UnsyncBufferedInputStream(InputStream inputStream)
           
UnsyncBufferedInputStream(InputStream inputStream, int size)
           
 
Method Summary
 int available()
           
 void close()
           
 void mark(int readLimit)
           
 boolean markSupported()
           
 int read()
           
 int read(byte[] byteArray)
           
 int read(byte[] byteArray, int offset, int length)
           
protected  void readUnderlyingInputStream()
           
 void reset()
           
 long skip(long skip)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buffer

protected byte[] buffer

firstInvalidIndex

protected int firstInvalidIndex

index

protected int index

markIndex

protected int markIndex

markLimit

protected int markLimit
Constructor Detail

UnsyncBufferedInputStream

public UnsyncBufferedInputStream(InputStream inputStream)

UnsyncBufferedInputStream

public UnsyncBufferedInputStream(InputStream inputStream,
                                 int size)
Method Detail

available

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

close

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

mark

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

markSupported

public boolean markSupported()
Overrides:
markSupported in class UnsyncFilterInputStream

read

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

read

public int read(byte[] byteArray)
         throws IOException
Overrides:
read in class UnsyncFilterInputStream
Throws:
IOException

read

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

reset

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

skip

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

readUnderlyingInputStream

protected void readUnderlyingInputStream()
                                  throws IOException
Throws:
IOException

Liferay 6.0.5