@Override
  public StreamImpl stream()
    throws IOException
  {
    if (_channelStream == null) {
      _channelStream = new SocketChannelStream();
    }
    
    if (_sslSocket == null) {
      _channelStream.init(_channel);
      _streamImpl = _channelStream;
    }
    else {
      if (_sslStream == null) {
        _sslStream = new SocketStream();
      }
      
      _sslStream.init(_sslSocket);
      _streamImpl = _sslStream;
    }

    return _streamImpl;
  }
@ Override public StreamImpl stream ( ) throws IOException { if ( _channelStream == null ) { _channelStream = new SocketChannelStream ( ) ; } if ( _sslSocket == null ) { _channelStream . init ( _channel ) ; _streamImpl = _channelStream ; } else { if ( _sslStream == null ) { _sslStream = new SocketStream ( ) ; } _sslStream . init ( _sslSocket ) ; _streamImpl = _sslStream ; } return _streamImpl ; }
Returns the socket's input stream.