com.liferay.portal.kernel.io.unsync
Class UnsyncBufferedInputStream
java.lang.Object
java.io.InputStream
com.liferay.portal.kernel.io.unsync.UnsyncFilterInputStream
com.liferay.portal.kernel.io.unsync.UnsyncBufferedInputStream
- All Implemented Interfaces:
- java.io.Closeable
public class UnsyncBufferedInputStream
- extends UnsyncFilterInputStream
See http://issues.liferay.com/browse/LPS-6648.
- Author:
- Shuyang Zhou
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
buffer
protected byte[] buffer
firstInvalidIndex
protected int firstInvalidIndex
index
protected int index
markLimitIndex
protected int markLimitIndex
UnsyncBufferedInputStream
public UnsyncBufferedInputStream(java.io.InputStream inputStream)
UnsyncBufferedInputStream
public UnsyncBufferedInputStream(java.io.InputStream inputStream,
int size)
available
public int available()
throws java.io.IOException
- Overrides:
available in class UnsyncFilterInputStream
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Specified by:
close in interface java.io.Closeable- Overrides:
close in class UnsyncFilterInputStream
- Throws:
java.io.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 java.io.IOException
- Overrides:
read in class UnsyncFilterInputStream
- Throws:
java.io.IOException
read
public int read(byte[] bytes)
throws java.io.IOException
- Overrides:
read in class UnsyncFilterInputStream
- Throws:
java.io.IOException
read
public int read(byte[] bytes,
int offset,
int length)
throws java.io.IOException
- Overrides:
read in class UnsyncFilterInputStream
- Throws:
java.io.IOException
reset
public void reset()
throws java.io.IOException
- Overrides:
reset in class UnsyncFilterInputStream
- Throws:
java.io.IOException
skip
public long skip(long skip)
throws java.io.IOException
- Overrides:
skip in class UnsyncFilterInputStream
- Throws:
java.io.IOException
fillInBuffer
protected void fillInBuffer()
throws java.io.IOException
- Throws:
java.io.IOException
readOnce
protected int readOnce(byte[] bytes,
int offset,
int length)
throws java.io.IOException
- Throws:
java.io.IOException