comparison src/org/tmatesoft/hg/internal/InflaterDataAccess.java @ 441:2a08466838d3

Don't use methods not available in Java 5
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Thu, 26 Apr 2012 12:42:32 +0200
parents 9c9c442b5f2e
children 8bf184c9d733
comparison
equal deleted inserted replaced
440:299870249a28 441:2a08466838d3
94 try { 94 try {
95 while (!inflater.needsInput()) { 95 while (!inflater.needsInput()) {
96 c += inflater.inflate(dummy, 0, dummy.length); 96 c += inflater.inflate(dummy, 0, dummy.length);
97 } 97 }
98 } catch (DataFormatException ex) { 98 } catch (DataFormatException ex) {
99 throw new IOException(ex); 99 throw new IOException(ex.toString());
100 } 100 }
101 } 101 }
102 decompressedLength = c + oldPos; 102 decompressedLength = c + oldPos;
103 reset(); 103 reset();
104 seek(oldPos); 104 seek(oldPos);