String line = in.readLine(); if (line == null || line.length() == -1)
String line = StringUtil.readLine(in); if (line == null)
    private void interactive() throws IOException {        mInteractive = true;        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));        while (true) {            System.out.print("prov> ");            String line = in.readLine();            if (line == null || line.length() == -1)                break;            if (mVerbose) {                System.out.println(line);            }            String args[] = StringUtil.parseLine(line);            if (args.length == 0)                continue;            try {                if (!execute(args)) {                    System.out.println("Unknown command. Type: 'help commands' for a list");                }            } catch (ServiceException e) {                Throwable cause = e.getCause();                System.err.println("ERROR: " + e.getCode() + " (" + e.getMessage() + ")" +                         (cause == null ? "" : " (cause: " + cause.getClass().getName() + " " + cause.getMessage() + ")"));                if (mVerbose) e.printStackTrace(System.err);            } catch (ArgException e) {                    usage();            }        }    }