src/main/java/org/michailov/async/io/EOFInputStream.java
private static boolean eofProcess(AsyncByteStreamReader byteReader, Process process) {
        try {
            return byteReader.getInputStream().available() == 0 && !process.isAlive();
        }
        catch (Throwable ex) {
            return true;
        }
    }
/**
     * Returns true iff Process.isAlive() returns false.
     */
Returns true iff Process.isAlive() returns false.
Returns true iff Process . isAlive () returns false .
private static boolean eofProcess(AsyncByteStreamReader byteReader, Process process) {
        try {
            return byteReader.getInputStream().available() == 0 && !process.isAlive();
        }
        catch (Throwable ex) {
            return true;
        }
    }
private static boolean eofProcess ( AsyncByteStreamReader byteReader , Process process ) { try { return byteReader . getInputStream ( ) . available ( ) == 0 && ! process . isAlive ( ) ; } catch ( Throwable ex ) { return true ; } }
Returns true iff Process.isAlive() returns false.
Returns true iff Process . isAlive () returns false .