sudipta1411 / jtar

Automatically exported from code.google.com/p/jtar
0 stars 0 forks source link

TarInputStream.skip is not implemented #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Default implementation from FilterInputStream is used, but bytesRead is not 
updated correctly, which causes problems when reading subsequent files from the 
TAR. In particular I cannot read .tar from the another .tar, because you 
actually skip() is used inside TarInputStream implementation assuming that 
InputStream passed to TarInputStream constructor supports it.

Original issue reported on code.google.com by amae...@gmail.com on 15 Apr 2011 at 10:53

GoogleCodeExporter commented 9 years ago
Cannot reproduce this error, with version 1.0.3. Tar files inside tar files are 
extracted successfully. Please attach a test tar file that is failing.

Original comment by xeus....@gmail.com on 18 Apr 2011 at 9:01

GoogleCodeExporter commented 9 years ago
Ok I see what you mean, I will override "skip" in the TarInputStream rather 
than assuming the passed InputStream supports/implements it.

Original comment by xeus....@gmail.com on 18 Apr 2011 at 9:19

GoogleCodeExporter commented 9 years ago
Fixed in release 1.0.4

Original comment by xeus....@gmail.com on 18 Apr 2011 at 8:34