class TdsTlsOutputStream
extends java.io.FilterOutputStream
Modifier and Type | Field and Description |
---|---|
private java.util.List |
bufferedRecords
Used for holding back CKE, CCS and FIN records.
|
private int |
totalSize |
Constructor and Description |
---|
TdsTlsOutputStream(java.io.OutputStream out)
Constructs a TdsTlsOutputStream based on an underlying output stream.
|
Modifier and Type | Method and Description |
---|---|
private void |
deferRecord(byte[] record,
int len)
Holds back a record for batched transmission.
|
void |
flush() |
private void |
flushBufferedRecords()
Transmits the buffered batch of records.
|
(package private) void |
putTdsPacket(byte[] b,
int len)
Write a TDS packet containing the TLS record(s).
|
void |
write(byte[] b,
int off,
int len) |
private final java.util.List bufferedRecords
private int totalSize
TdsTlsOutputStream(java.io.OutputStream out)
out
- the underlying output streamprivate void deferRecord(byte[] record, int len)
record
- the TLS record to bufferlen
- the length of the TLS record to bufferprivate void flushBufferedRecords() throws java.io.IOException
java.io.IOException
public void write(byte[] b, int off, int len) throws java.io.IOException
write
in class java.io.FilterOutputStream
java.io.IOException
void putTdsPacket(byte[] b, int len) throws java.io.IOException
b
- the TLS recordlen
- the length of the TLS recordjava.io.IOException
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.FilterOutputStream
java.io.IOException
Generated on June 8 2013