if (is != null) {
if (reader != null) {
	static String[] readLines(InputStream is) {				try {			StringBuffer sb= new StringBuffer();			List list= new ArrayList();			while (true) {				int c= is.read();				if (c == -1)					break;				sb.append((char)c);				if (c == '\r') {	// single CR or a CR followed by LF					c= is.read();					if (c == -1)						break;					sb.append((char)c);					if (c == '\n') {						list.add(sb.toString());						sb= new StringBuffer();					}				} else if (c == '\n') {	// a single LF					list.add(sb.toString());					sb= new StringBuffer();				}			}			if (sb.length() > 0)				list.add(sb.toString());			return (String[]) list.toArray(new String[list.size()]);		} catch (IOException ex) {			return null;		} finally {			if (is != null) {				try {					is.close();				} catch (IOException ex) {				}			}		}	}