diff --git a/README.md b/README.md index 45f160e..47e7454 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ # Overview -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. +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 and also __supports UStar format__. ## Usage JTar is available in maven central and can be added as a dependency in the maven project.
  <dependency>
     <groupId>org.kamranzafar</groupId>
     <artifactId>jtar</artifactId>
-    <version>2.1</version>
+    <version>2.2</version>
   </dependency>
 
diff --git a/src/main/java/org/kamranzafar/jtar/TarHeader.java b/src/main/java/org/kamranzafar/jtar/TarHeader.java index 51f0a24..b9d3a86 100755 --- a/src/main/java/org/kamranzafar/jtar/TarHeader.java +++ b/src/main/java/org/kamranzafar/jtar/TarHeader.java @@ -192,10 +192,8 @@ public class TarHeader { } /** - * Creates a new header for a file entry. + * Creates a new header for a file/directory entry. * - * This method is useful for creating entries that do not correspond to a - * file. * * @param name * File name @@ -203,6 +201,8 @@ public class TarHeader { * File size in bytes * @param modTime * Last modification time in numeric Unix time format + * @param dir + * Is directory * * @return */