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 PreparedStatement
ps
protected ResultSet
rs
-
Fields inherited from class net.ontopia.infoset.content.ContentInputStream
length, stream
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
available()
void
close()
void
mark(int readlimit)
boolean
markSupported()
int
read()
int
read(byte[] b)
int
read(byte[] b, int off, int len)
void
reset()
long
skip(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:
available
in classContentInputStream
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classContentInputStream
- Throws:
IOException
-
mark
public void mark(int readlimit)
- Overrides:
mark
in classContentInputStream
-
markSupported
public boolean markSupported()
- Overrides:
markSupported
in classContentInputStream
-
read
public int read() throws IOException
- Overrides:
read
in classContentInputStream
- Throws:
IOException
-
read
public int read(byte[] b) throws IOException
- Overrides:
read
in classContentInputStream
- Throws:
IOException
-
read
public int read(byte[] b, int off, int len) throws IOException
- Overrides:
read
in classContentInputStream
- Throws:
IOException
-
reset
public void reset() throws IOException
- Overrides:
reset
in classContentInputStream
- Throws:
IOException
-
skip
public long skip(long n) throws IOException
- Overrides:
skip
in classContentInputStream
- Throws:
IOException
-
-