public class ContentBufferInputStream extends InputStream
| Modifier and Type | Field and Description |
|---|---|
protected long |
beginIndex |
protected ContentBuffer |
contentBuffer |
protected long |
endIndexExclusive |
protected Lock |
lock |
protected long |
pointer |
| Constructor and Description |
|---|
ContentBufferInputStream(ContentBuffer buffer)
Конструктор
|
ContentBufferInputStream(ContentBuffer buffer,
long beginIndex)
Конструктор
|
ContentBufferInputStream(ContentBuffer buffer,
long beginIndex,
long endIndexExclusive)
Конструктор
|
ContentBufferInputStream(ContentBuffer buffer,
long beginIndex,
long endIndexExclusive,
Lock lock)
Конструктор
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
long |
skip(long n) |
available, mark, markSupported, resetprotected Lock lock
protected ContentBuffer contentBuffer
protected long beginIndex
protected long endIndexExclusive
protected long pointer
public ContentBufferInputStream(ContentBuffer buffer, long beginIndex, long endIndexExclusive, Lock lock)
buffer - буфферbeginIndex - начальный индексendIndexExclusive - конечный индекс или -1lock - блокировка или nullpublic ContentBufferInputStream(ContentBuffer buffer, long beginIndex, long endIndexExclusive)
buffer - буфферbeginIndex - начальный индексendIndexExclusive - конечный индекс или -1public ContentBufferInputStream(ContentBuffer buffer, long beginIndex)
buffer - буфферbeginIndex - начальный индексpublic ContentBufferInputStream(ContentBuffer buffer)
buffer - буфферpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class InputStreamIOExceptionCopyright © 2018. All rights reserved.