src/main/java/org/michailov/async/io/EOFInputStream.java
private static boolean eofFile(AsyncByteStreamReader byteReader, File file) {
        try {
            return byteReader.getInputStream().available() == 0 && byteReader.getByteRingBuffer().getTotalReadCount() == file.length();
        }
        catch (Throwable ex) {
            return true;
        }
    }
/**
     * Returns true iff File.length bytes have been read by the consuming {@link AsyncByteStreamReader}.
     */
Returns true iff File.length bytes have been read by the consuming  AsyncByteStreamReader.
Returns true iff File . length bytes have been read by the consuming AsyncByteStreamReader .
private static boolean eofFile(AsyncByteStreamReader byteReader, File file) {
        try {
            return byteReader.getInputStream().available() == 0 && byteReader.getByteRingBuffer().getTotalReadCount() == file.length();
        }
        catch (Throwable ex) {
            return true;
        }
    }
private static boolean eofFile ( AsyncByteStreamReader byteReader , File file ) { try { return byteReader . getInputStream ( ) . available ( ) == 0 && byteReader . getByteRingBuffer ( ) . getTotalReadCount ( ) == file . length ( ) ; } catch ( Throwable ex ) { return true ; } }
Returns true iff File.length bytes have been read by the consuming {@link AsyncByteStreamReader}.
Returns true iff File . length bytes have been read by the consuming { @link AsyncByteStreamReader } .