kamranzafar / jtar

JTar is a simple Java Tar library, that provides an easy way to create and read tar files using IO streams. The API is very simple to use and similar to the java.util.zip package.
https://kamranzafar.org
Apache License 2.0
145 stars 45 forks source link

Supported TAR formats #16

Closed AAverin closed 9 years ago

AAverin commented 9 years ago

I noticed several issues related to TAR format support. What is the current state? I tried GNU and USTAR, and for both files I get incorrect file names. For GNU I was getting only first 4 letters of the file name bundled in TAR For USTAR I get a file name without extention, like 'myname.', with a dot at the end. I though USTAR is supported?

AAverin commented 9 years ago

To answer my questions. Out of GNU, OLDGNU, POSIX, USTAR, V7 only POSIX isn't supported by the library - first tar entry has some additional data that isn't properly processed.