private static String readLine(InputStream paramInputStream)
            throws IOException {
        StringBuffer localStringBuffer = new StringBuffer();
        for (int i = paramInputStream.read(); (i > 0) && (i != 10); i = paramInputStream
                .read()) {
            localStringBuffer.append((char) i);
        }
        if (localStringBuffer.length() > 0) {
            return new String(localStringBuffer);
        }
        return null;
    }