String[] values = new String[1]; try { values[0] = formEncoding == null ? item.getString() : item.getString(formEncoding); } catch (UnsupportedEncodingException e) { e.printStackTrace();
String[] values; if(obj instanceof List) { List list = (List)obj; values = new String[list.size()]; int j = 0; for(Iterator i = list.iterator(); i.hasNext(); j++) { FileItem item = (FileItem)i.next(); try { values[j] = formEncoding == null ? item.getString() : item.getString(formEncoding); } catch (UnsupportedEncodingException e) { e.printStackTrace(); } } } else { FileItem item = (FileItem)obj; values = new String[1]; try { values[0] = formEncoding == null ? item.getString() : item.getString(formEncoding); } catch (UnsupportedEncodingException e) { e.printStackTrace(); }
	public String[] getParameterValues(String key) {		if(params == null) {			String[] values = request.getParameterValues(key);			if(formEncoding == null || values == null)				return values;			for(int i = 0; i < values.length; i++) {				values[i] = decode(values[i]);			}			return values;		} else {			FileItem item = (FileItem)params.get(key);			if(item == null)				return null;			String[] values = new String[1];			try {				values[0] = formEncoding == null ? item.getString() : item.getString(formEncoding);			} catch (UnsupportedEncodingException e) {				e.printStackTrace();			}			return values;		}	}