net.sourceforge.jtds.jdbc

Class ResponseStream.TdsInputStream

Enclosing Class:
ResponseStream

private static class ResponseStream.TdsInputStream
extends InputStream

Simple inner class implementing an InputStream over the server response.

Field Summary

(package private) int
maxLen
The maximum amount of data to make available.
(package private) ResponseStream
tds
The underlying ResponseStream.

Constructor Summary

TdsInputStream(ResponseStream tds, int maxLen)
Creates a TdsInputStream instance.

Method Summary

int
read()
int
read(byte[] bytes, int offset, int len)

Field Details

maxLen

(package private)  int maxLen
The maximum amount of data to make available.

tds

(package private)  ResponseStream tds
The underlying ResponseStream.

Constructor Details

TdsInputStream

public TdsInputStream(ResponseStream tds,
                      int maxLen)
Creates a TdsInputStream instance.
Parameters:
tds - the underlying ResponseStream
maxLen - the maximum amount of data that will be available

Method Details

read

public int read()
            throws IOException

read

public int read(byte[] bytes,
                int offset,
                int len)
            throws IOException

Generated on June 12 2008