~ubuntu-branches/ubuntu/utopic/libcommons-compress-java/utopic

« back to all changes in this revision

Viewing changes to src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveInputStream.java

  • Committer: Package Import Robot
  • Author(s): Emmanuel Bourg
  • Date: 2014-03-13 08:37:01 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20140313083701-spnlyo3fl3qcp0ab
Tags: 1.8-1
* New upstream release
* Updated the OSGi metadata
* The dependency on libxz-java is now suggested and no longer required

Show diffs side-by-side

added added

removed removed

Lines of Context:
193
193
    @Override
194
194
    public long skip(long numToSkip) throws IOException {
195
195
 
196
 
        long available = (entrySize - entryOffset);
 
196
        long available = entrySize - entryOffset;
197
197
        numToSkip = Math.min(numToSkip, available);
198
198
 
199
199
        long skipped = IOUtils.skip(is, numToSkip); 
385
385
 
386
386
        byte[] record = new byte[recordSize];
387
387
 
388
 
        int readNow = is.read(record);
 
388
        int readNow = IOUtils.readFully(is, record);
389
389
        count(readNow);
390
390
        if (readNow != recordSize) {
391
391
            return null;