This commit is contained in:
kamran 2012-11-06 19:05:07 +00:00
parent d8cf97b759
commit 0705ada9c6
2 changed files with 5 additions and 5 deletions

View File

@ -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.
<pre><code> &lt;dependency&gt;
&lt;groupId&gt;org.kamranzafar&lt;/groupId&gt;
&lt;artifactId&gt;jtar&lt;/artifactId&gt;
&lt;version&gt;2.1&lt;/version&gt;
&lt;version&gt;2.2&lt;/version&gt;
&lt;/dependency&gt;
</code></pre>

View File

@ -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
*/