Code example for SSLSocket

Methods: getOutputStream

0
    } 
 
    public OutputStream getOutputStream() throws IOException {
        if (sslSocket != null) {
            if (sslOutputStream == null) {
                sslOutputStream = sslSocket.getOutputStream();
            } 
            return sslOutputStream;
        } else if(outputStream == null) {
            outputStream = socket.getOutputStream();
        } 
        return outputStream;
    } 
 
    public InputStream getInputStream() throws IOException {
        if (sslSocket != null) {
            if (sslInputStream == null) {
                sslInputStream = sslSocket.getInputStream();
            } 
            return sslInputStream;
        } else if (inputStream == null) {