Package org.teiid.common.buffer
Class ExtensibleBufferedInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.teiid.common.buffer.ExtensibleBufferedInputStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public abstract class ExtensibleBufferedInputStream extends InputStream
-
-
Constructor Summary
Constructors Constructor Description ExtensibleBufferedInputStream()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ByteBuffer
getBuffer()
protected abstract ByteBuffer
nextBuffer()
int
read()
int
read(byte[] b, int off, int len)
void
reset()
-
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, read, skip
-
-
-
-
Method Detail
-
read
public int read() throws IOException
- Specified by:
read
in classInputStream
- Throws:
IOException
-
nextBuffer
protected abstract ByteBuffer nextBuffer() throws IOException
- Throws:
IOException
-
read
public int read(byte[] b, int off, int len) throws IOException
- Overrides:
read
in classInputStream
- Throws:
IOException
-
reset
public void reset() throws IOException
- Overrides:
reset
in classInputStream
- Throws:
IOException
-
getBuffer
public ByteBuffer getBuffer() throws IOException
- Throws:
IOException
-
-