de.tu_darmstadt.sp.ssl
Class SSLeayOutputStream
java.lang.Object
|
+--java.io.OutputStream
|
+--de.tu_darmstadt.sp.ssl.SSLeayOutputStream
- public class SSLeayOutputStream
- extends java.io.OutputStream
Class SSLeayOutputStream write bytes to an SSL socket. The
SSLeay Socket is represented by the SSLeayHandle
object. The write
method can be envoked only
after the SSL socket represented by the given
handle has performed a the handshake protocol.
- Version:
- $Revision: 1.4 $
- Author:
- Andrei Popovici
Constructor Summary |
SSLeayOutputStream(SSLeayHandle handle)
Create a SSLeayOutputStream writing bytes
through an SSL socket denoted by the SSLHandle
parameter. |
Method Summary |
void |
write(byte[] b,
int off,
int length)
Writes an array of bytes to the underlying SSLeay Socket |
void |
write(int b)
Writes one byte using the three argument write. |
Methods inherited from class java.io.OutputStream |
close,
flush,
write |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
SSLeayOutputStream
public SSLeayOutputStream(SSLeayHandle handle)
- Create a
SSLeayOutputStream
writing bytes
through an SSL socket denoted by the SSLHandle
parameter.
- Parameters:
handle
- the handle for the underlying socket
write
public void write(int b)
throws java.io.IOException
- Writes one byte using the three argument write.
- Parameters:
b
- byte to write- Throws:
- java.io.IOException - if an I/O error occurs or underlying
socket does not have a secure connection (handshake not performed)
- Overrides:
- write in class java.io.OutputStream
write
public void write(byte[] b,
int off,
int length)
throws java.io.IOException
- Writes an array of bytes to the underlying SSLeay Socket
- Parameters:
b
- array to write fromoff
- offset into b
length
- number of bytes to read- Throws:
- java.io.IOException - if an I/O error occurs or
underlying socket has no secure connection to peer
(handshake not performed, uncompleted, etc.)
- Overrides:
- write in class java.io.OutputStream