class TdsTlsInputStream
extends java.io.FilterInputStream
Modifier and Type | Field and Description |
---|---|
(package private) java.io.InputStream |
bufferStream |
(package private) int |
bytesOutstanding |
(package private) boolean |
pureSSL
False if TLS packets are encapsulated in TDS packets.
|
(package private) byte[] |
readBuffer
Temporary buffer used to de-encapsulate inital TLS packets.
|
Constructor and Description |
---|
TdsTlsInputStream(java.io.InputStream in)
Constructs a TdsTlsInputStream and bases it on an underlying stream.
|
Modifier and Type | Method and Description |
---|---|
private void |
primeBuffer()
Read in entire TLS record or TDS packet and store the TLS record in the
buffer.
|
int |
read(byte[] b,
int off,
int len) |
private void |
readFully(byte[] b,
int off,
int len)
Reads
len bytes or throws an IOException if
there aren't that many bytes available. |
int bytesOutstanding
final byte[] readBuffer
java.io.InputStream bufferStream
boolean pureSSL
public TdsTlsInputStream(java.io.InputStream in)
in
- the underlying streampublic int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
private void primeBuffer() throws java.io.IOException
java.io.IOException
private void readFully(byte[] b, int off, int len) throws java.io.IOException
len
bytes or throws an IOException
if
there aren't that many bytes available.b
- buffer to read intooff
- offset in the buffer where to start storinglen
- amount of data to readjava.io.IOException
- if an I/O error occurs or not enough data is
availableGenerated on June 8 2013