Package net.sourceforge.jtds.jdbc
Class ResponseStream.TdsInputStream
java.lang.Object
java.io.InputStream
net.sourceforge.jtds.jdbc.ResponseStream.TdsInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Enclosing class:
- ResponseStream
Simple inner class implementing an
InputStream
over the
server response.-
Field Summary
FieldsModifier and TypeFieldDescription(package private) int
The maximum amount of data to make available.(package private) ResponseStream
The underlyingResponseStream
. -
Constructor Summary
ConstructorsConstructorDescriptionTdsInputStream
(ResponseStream tds, int maxLen) Creates aTdsInputStream
instance. -
Method Summary
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Field Details
-
tds
ResponseStream tdsThe underlyingResponseStream
. -
maxLen
int maxLenThe maximum amount of data to make available.
-
-
Constructor Details
-
TdsInputStream
Creates aTdsInputStream
instance.- Parameters:
tds
- the underlyingResponseStream
maxLen
- the maximum amount of data that will be available
-
-
Method Details
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-