mirror of
https://github.com/topjohnwu/jtar.git
synced 2024-11-23 03:19:41 +00:00
updates
This commit is contained in:
parent
d8cf97b759
commit
0705ada9c6
@ -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> <dependency>
|
||||
<groupId>org.kamranzafar</groupId>
|
||||
<artifactId>jtar</artifactId>
|
||||
<version>2.1</version>
|
||||
<version>2.2</version>
|
||||
</dependency>
|
||||
</code></pre>
|
||||
|
||||
|
@ -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
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user