/*
@see org.eclipse.datatools.connectivity.oda.IResultSet#getString(int)
776657
public String getString( int index ) throws OdaException
	{
		Object value = getFieldValue(index);
		if (value!=null){
			return value.toString();
		}
		return null;
	}
294228
public String getString(String string)
    {
        if (this.getRecord() != null)
            if (this.getRecord().getTask() != null)
                string = this.getRecord().getTask().getString(string);
        return string;
    }
902477
public String getString(int index) {
        Object tmp = mArray.get(index);
        return tmp == null ? null : tmp.toString();
    }
970096
public String
getString() throws IOException {
	Token next = get();
	if (!next.isString()) {
		throw exception("expected a string");
	}
	return next.value;
}
882868
public String getDataString() {
        if (exception == null) {
            try {
                if (!setDataString) {
                    dataString = EntityUtils.toString(httpEntity, charset.charset);
                    setDataString = true;
                }
            } catch (IOException e) {
                e.printStackTrace();
                return null;
            }
        }

        return dataString;
    }
142450
public String getStringValue(int index) {
        String[] array = get(index).extractStringArray();
        String str = "";
        for (int i=0 ; i<array.length ; i++) {
            str += array[i];
            if (i < array.length - 1)
                str += "\n";
        }
        return str;
    }
7785
@Override
    public String getString( final String      key,
                             final String      defaultValue )
    {
        String  candidate;
        candidate = getFormattedPropValue( key );

        if ( candidate == null )
        {
            return defaultValue;
        }

        return candidate;
    }
996452
public String getString(String name, String defaultValue) {
      return getAs(name, String.class, defaultValue);
   }
618266
public String getString(int index)
  {
    Object value = _values[index - 1];

    if (value != null) {
      return value.toString();
    }
    else {
      return null;
    }
  }
783661
@Override
    public String getNString(int columnIndex) throws SQLException {
        checkColumnBounds(columnIndex);
        try {
            return table.getString(columnIndex - 1);
        } catch (Exception x) {
            throw SQLError.get(x);
        }
    }
275760
public String getString(String name) throws JSONException {
		Object object = get(name);
		String result = JSON.toString(object);
		if (result == null) {
			throw JSON.typeMismatch(name, object, "String");
		}
		return result;
	}
1010716
public static Integer stringToInteger(String strString) throws Exception
    {
        Number objData;
        initGlobals();      // Make sure you have the utilities
        if ((strString == null) || (strString.equals(Constant.BLANK)))
            return null;
        strString = DataConverters.stripNonNumber(strString);
        try   {
            synchronized (gIntegerFormat)
            {
                objData = gIntegerFormat.parse(strString);
            }
            if (!(objData instanceof Integer))
            {
                if (objData instanceof Number)
                    objData = new Integer(objData.intValue());
                else
                    objData = null;
            }
        } catch (ParseException ex)   {
            objData = null;
        }
        if (objData == null)
            if (strString != null)
            if (strString.length() > 0)
        {
            try   {
                objData = new Integer(strString);
            } catch (NumberFormatException ex)  {
                throw ex;
            }
        }
        return (Integer)objData;
    }
673529
public final String getString(int index)
    {
        Utf8 utf8 = (Utf8) getConstantInfo(index);
        return utf8.getString();
    }
812357
public static String getString(final String msg) {
        ConsoleMenu.print(msg);

        BufferedReader bufReader = null;
        String opt = null;

        try {
            bufReader = new BufferedReader(new InputStreamReader(System.in));
            opt = bufReader.readLine();
        } catch (final IOException ex) {
            log(ex);
            System.exit(1);
        }

        return opt;
    }
77550
public static final String getString(InputStream is) throws IOException
   {
      int type = is.read();
      if (type != 1)
      {
         throw new IllegalArgumentException("Unexpected string format");
      }

      Charset charset = CharsetHelper.UTF8;
      
      int length = is.read();
      if (length == 0xFF)
      {
         length = getShort(is);
         if (length == 0xFFFE)
         {
            charset = CharsetHelper.UTF16LE;
            length = (is.read() * 2);
         }
      }

      String result;
      if (length == 0)
      {
         result = null;
      }
      else
      {
         byte[] stringData = new byte[length];         
         is.read(stringData);
         result = new String(stringData, charset);
      }
      return result;
   }
389687
@Override
	public String getString(final FieldCase c) {
		boolean success = false;
		String numberString;
		do {
			double number = getDouble(c);
			numberString = format.format(number);
			if (notZero && ZERO_PATTERN.matcher(numberString).matches()) {
				log.info(XMLTags.NOTZERO + " is true and a zero value was generated: value=" + numberString + " - generating new value");
			} else {
				success = true;
			}

		} while (!success);
		if (c.isBad()) {
			numberString = expression.negateString(numberString, c.getBad());
		}
		return numberString;
	}
282265
public String getString(String encoding) throws InvalidBEncodingException {
    try {
      return new String(this.getBytes(), encoding);
    } catch (ClassCastException cce) {
      throw new InvalidBEncodingException(cce.toString());
    } catch (UnsupportedEncodingException uee) {
      throw new InternalError(uee.toString());
    }
  }