core/src/main/java/org/apache/commons/vfs2/provider/tar/TarInputStream.java
/**
     * Get the available data that can be read from the current entry in the
     * archive. This does not indicate how much data is left in the entire
     * archive, only in the current entry. This value is determined from the
     * entry's size header field and the amount of data already read from the
     * current entry.
     *
     * @return The number of available bytes for the current entry.
     * @throws IOException when an IO error causes operation to fail
     */
Get the available data that can be read from the current entry in the
archive. This does not indicate how much data is left in the entire
archive, only in the current entry. This value is determined from the
entry's size header field and the amount of data already read from the
current entry.

@return The number of available bytes for the current entry.
@throws IOException when an IO error causes operation to fail
Get the available data that can be read from the current entry in the archive . This does not indicate how much data is left in the entire archive only in the current entry . This value is determined from the entry ' s size header field and the amount of data already read from the current entry . @return The number of available bytes for the current entry . @throws IOException when an IO error causes operation to fail
@Override
    public int available() throws IOException
    {
        long remaining = entrySize - entryOffset;
        if (remaining > Integer.MAX_VALUE)
        {
            return Integer.MAX_VALUE;
        }
        return (int) remaining;
    }
@ Override public int available ( ) throws IOException { long remaining = entrySize - entryOffset ; if ( remaining > Integer . MAX_VALUE ) { return Integer . MAX_VALUE ; } return ( int ) remaining ; }
Get the available data that can be read from the current entry in the
 archive.
Get the available data that can be read from the current entry in the archive .