code: public synchronized InputStream getInputStream()
          throws java.io.IOException
      {
          if (!checkConnection())
              throw new IOException( "Invalid resource");
  
          try
          {    
              if( _in != null)
              {
                  InputStream in = _in;
                  _in=null;
                  return in;
              }
              return _connection.getInputStream();
          }
          finally
          {
              _connection=null;
          }
      }
docs: Returns an input stream to the resource