public class DbInputStream
extends org.apache.commons.io.input.AutoCloseInputStream
This class does not support mark/reset. It is always to be wrapped using a BufferedInputStream.
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
endOfStream |
protected DataIdentifier |
identifier |
protected ResultSet |
rs |
protected DbDataStore |
store |
in| Modifier | Constructor and Description |
|---|---|
protected |
DbInputStream(DbDataStore store,
DataIdentifier identifier)
Create a database input stream for the given identifier.
|
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close()
When the stream is consumed, the database objects held by the instance are closed.
|
void |
mark(int readlimit)
This method does nothing.
|
boolean |
markSupported()
Check whether mark and reset are supported.
|
protected void |
openStream()
Open the stream if required.
|
int |
read()
When the stream is consumed, the database objects held by the instance are closed.
|
int |
read(byte[] b)
When the stream is consumed, the database objects held by the instance are closed.
|
int |
read(byte[] b,
int off,
int len)
When the stream is consumed, the database objects held by the instance are closed.
|
void |
reset()
This method does nothing.
|
long |
skip(long n) |
protected DbDataStore store
protected DataIdentifier identifier
protected boolean endOfStream
protected ResultSet rs
protected DbInputStream(DbDataStore store, DataIdentifier identifier)
store - the database data storeidentifier - the data identifierprotected void openStream()
throws IOException
IOExceptionpublic int read()
throws IOException
read in class org.apache.commons.io.input.ProxyInputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in class org.apache.commons.io.input.ProxyInputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class org.apache.commons.io.input.ProxyInputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class org.apache.commons.io.input.AutoCloseInputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class org.apache.commons.io.input.ProxyInputStreamIOExceptionpublic int available()
throws IOException
available in class org.apache.commons.io.input.ProxyInputStreamIOExceptionpublic void mark(int readlimit)
mark in class org.apache.commons.io.input.ProxyInputStreampublic void reset()
throws IOException
reset in class org.apache.commons.io.input.ProxyInputStreamIOExceptionpublic boolean markSupported()
markSupported in class org.apache.commons.io.input.ProxyInputStreamCopyright © 2004–2021 The Apache Software Foundation. All rights reserved.