code: @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;
    }
docs: Returns the socket's input stream.