Package org.savantbuild.io.tar
Class TarBuilder
java.lang.Object
org.savantbuild.io.tar.TarBuilder
Helps build Tar files.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbuild()Builds the TAR file using the fileSets and Directories provided.longoptionalFileSet(String directory) optionalFileSet(Path directory) optionalFileSet(FileSet fileSet)
-
Field Details
-
directories
-
file
-
fileSets
-
compress
public boolean compress -
storeGroupName
public boolean storeGroupName -
storeUserName
public boolean storeUserName
-
-
Constructor Details
-
TarBuilder
-
TarBuilder
-
-
Method Details
-
build
Builds the TAR file using the fileSets and Directories provided.- Returns:
- The number of entries added to the TAR file including the directories.
- Throws:
IOException- If the build fails.
-
directory
- Throws:
IOException
-
getExplodedSize
- Throws:
IOException
-
fileSet
- Throws:
IOException
-
fileSet
- Throws:
IOException
-
fileSet
- Throws:
IOException
-
optionalFileSet
- Throws:
IOException
-
optionalFileSet
- Throws:
IOException
-
optionalFileSet
- Throws:
IOException
-