|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.OutputStream java.io.FilterOutputStream net.sourceforge.jtds.ssl.TdsTlsOutputStream
An output stream that mediates between JSSE and the DB server.
SQL Server 2000 has the following requirements:
Field Summary | |
private java.util.List |
bufferedRecords
Used for holding back CKE, CCS and FIN records. |
private int |
totalSize
|
Fields inherited from class java.io.FilterOutputStream |
out |
Constructor Summary | |
(package private) |
TdsTlsOutputStream(java.io.OutputStream out)
Constructs a TdsTlsOutputStream based on an underlying output stream. |
Method Summary | |
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)
|
Methods inherited from class java.io.FilterOutputStream |
close, write, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private final java.util.List bufferedRecords
private int totalSize
Constructor Detail |
TdsTlsOutputStream(java.io.OutputStream out)
out
- the underlying output streamMethod Detail |
private 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
java.io.IOException
void putTdsPacket(byte[] b, int len) throws java.io.IOException
b
- the TLS recordlen
- the length of the TLS record
java.io.IOException
public void flush() throws java.io.IOException
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |