String theLine; Vector v = new Vector(); try { DataInputStream dis = new DataInputStream(uc.getInputStream()); while ((theLine = dis.readLine()) != null) { String[] linearray = lineToArray(theLine); v.addElement(linearray); } } catch (IOException e) { } return v;
StringTokenizer st = new StringTokenizer(line, "\t"); int numFields = st.countTokens(); String[] fields = new String[numFields]; for (int i = 0; i < numFields; i++) { fields[i] = st.nextToken(); } return fields;