mayi-common/mayi-common-core/src/main/java/com/zf1976/mayi/common/core/compressors/utils/CountingInputStream.java
protected final void count(final long read) {
        if (read != -1) {
            bytesRead += read;
        }
    }
/**
     * Increments the counter of already read bytes.
     * Doesn't increment if the EOF has been hit (read == -1)
     *
     * @param read the number of bytes read
     */
Increments the counter of already read bytes.
Doesn't increment if the EOF has been hit (read == -1)

@param read the number of bytes read
Increments the counter of already read bytes . Doesn ' t increment if the EOF has been hit ( read == - 1 ) @param read the number of bytes read
protected final void count(final long read) {
        if (read != -1) {
            bytesRead += read;
        }
    }
protected final void count ( final long read ) { if ( read != - 1 ) { bytesRead += read ; } }
Increments the counter of already read bytes.
Increments the counter of already read bytes .