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) intThe maximum amount of data to make available.(package private) ResponseStreamThe underlyingResponseStream. -
Constructor Summary
ConstructorsConstructorDescriptionTdsInputStream(ResponseStream tds, int maxLen) Creates aTdsInputStreaminstance. -
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 aTdsInputStreaminstance.- Parameters:
tds- the underlyingResponseStreammaxLen- the maximum amount of data that will be available
-
-
Method Details
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-