String[] output; if (fromProcess != null) { Vector lines = new Vector(10); try { BufferedReader reader = new BufferedReader( new InputStreamReader(errorStream)); for (int i = 0; i < 2; i++) { for (int j = 0; j < 100; j++) { String line = reader.readLine(); if (line == null) { reader = new BufferedReader(new InputStreamReader( fromProcess)); break; } lines.addElement(line); } } } catch (IOException ex) { } output = new String[lines.size()]; lines.copyInto(output); return output; } output = new String[0]; return output; }
return output; }
    public String[] getOutput() {        String[] output;        if (fromProcess != null) {            Vector lines = new Vector(10);            try {                BufferedReader reader = new BufferedReader(                        new InputStreamReader(errorStream));                for (int i = 0; i < 2; i++) {                    for (int j = 0; j < 100; j++) {                        String line = reader.readLine();                        if (line == null) {                            reader = new BufferedReader(new InputStreamReader(                                    fromProcess));                            break;                        }                        lines.addElement(line);                    }                }            } catch (IOException ex) {            }            output = new String[lines.size()];            lines.copyInto(output);            return output;        }        output = new String[0];        return output;    }