Package net.ontopia.infoset.content
Class JDBCBinaryInputStream
- java.lang.Object
-
- java.io.InputStream
-
- net.ontopia.infoset.content.ContentInputStream
-
- net.ontopia.infoset.content.JDBCBinaryInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class JDBCBinaryInputStream extends ContentInputStream
INTERNAL:
-
-
Field Summary
Fields Modifier and Type Field Description protected PreparedStatementpsprotected ResultSetrs-
Fields inherited from class net.ontopia.infoset.content.ContentInputStream
length, stream
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intavailable()voidclose()voidmark(int readlimit)booleanmarkSupported()intread()intread(byte[] b)intread(byte[] b, int off, int len)voidreset()longskip(long n)-
Methods inherited from class net.ontopia.infoset.content.ContentInputStream
getLength
-
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
-
-
-
-
Field Detail
-
ps
protected PreparedStatement ps
-
rs
protected ResultSet rs
-
-
Method Detail
-
available
public int available() throws IOException- Overrides:
availablein classContentInputStream- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classContentInputStream- Throws:
IOException
-
mark
public void mark(int readlimit)
- Overrides:
markin classContentInputStream
-
markSupported
public boolean markSupported()
- Overrides:
markSupportedin classContentInputStream
-
read
public int read() throws IOException- Overrides:
readin classContentInputStream- Throws:
IOException
-
read
public int read(byte[] b) throws IOException- Overrides:
readin classContentInputStream- Throws:
IOException
-
read
public int read(byte[] b, int off, int len) throws IOException- Overrides:
readin classContentInputStream- Throws:
IOException
-
reset
public void reset() throws IOException- Overrides:
resetin classContentInputStream- Throws:
IOException
-
skip
public long skip(long n) throws IOException- Overrides:
skipin classContentInputStream- Throws:
IOException
-
-