org.apache.commons.compress.archivers

Class ArchiveInputStream

    • Method Detail

      • getNextEntry

        public abstract ArchiveEntry getNextEntry()                                   throws IOException
        Returns the next Archive Entry in this Stream.
        Returns:
        the next entry, or null if there are no more entries
        Throws:
        IOException - if the next entry could not be read
      • count

        protected void count(int read)
        Increments the counter of already read bytes. Doesn't increment if the EOF has been hit (read == -1)
        Parameters:
        read - the number of bytes read
      • count

        protected void count(long read)
        Increments the counter of already read bytes. Doesn't increment if the EOF has been hit (read == -1)
        Parameters:
        read - the number of bytes read
        Since:
        1.1
      • pushedBackBytes

        protected void pushedBackBytes(long pushedBack)
        Decrements the counter of already read bytes.
        Parameters:
        pushedBack - the number of bytes pushed back.
        Since:
        1.1
      • getCount

        @Deprecatedpublic int getCount()
        Deprecated. this method may yield wrong results for large archives, use #getBytesRead instead
        Returns the current number of bytes read from this stream.
        Returns:
        the number of read bytes
      • getBytesRead

        public long getBytesRead()
        Returns the current number of bytes read from this stream.
        Returns:
        the number of read bytes
        Since:
        1.1
      • canReadEntryData

        public boolean canReadEntryData(ArchiveEntry archiveEntry)
        Whether this stream is able to read the given entry.

        Some archive formats support variants or details that are not supported (yet).

        Parameters:
        archiveEntry - the entry to test
        Returns:
        This implementation always returns true.
        Since:
        1.1

Copyright © 2016 The Apache Software Foundation. All rights reserved.



NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14