public Object get(ResultSet rs, String name) throws SQLException
  {
    Object value = rs.getObject(name);
    if (value != null && (value instanceof Reader))
    {
      // Wenn es ein Stream ist, kopieren wir die Daten in ein
      // Byte-Array
      Reader r = (Reader) value;
      try
      {
        StringBuffer sb = new StringBuffer();
        char[] buf = new char[1024];
        int len = 0;
        while ((len = r.read(buf)) != -1)
          sb.append(buf,0,len);
        
        return sb.toString();
      }
      catch (IOException ioe)
      {
        throw new SQLException("unable to read text/longvarchar: " + ioe.getMessage());
      }
      finally
      {
        try
        {
          r.close();
        }
        catch (IOException e)
        {
          throw new SQLException("unable to close inputstream: " + e.getMessage());
        }
      }
    }
    return value;
  }