class TdsTlsOutputStream
extends java.io.FilterOutputStream
| Modifier and Type | Field and Description | 
|---|---|
| private java.util.List | bufferedRecordsUsed 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.IOExceptionpublic void write(byte[] b,
         int off,
         int len)
           throws java.io.IOException
write in class java.io.FilterOutputStreamjava.io.IOExceptionvoid putTdsPacket(byte[] b,
                int len)
            throws java.io.IOException
b - the TLS recordlen - the length of the TLS recordjava.io.IOExceptionpublic void flush()
           throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.FilterOutputStreamjava.io.IOExceptionGenerated on June 8 2013