Class EAATar
java.lang.Object
org.epics.archiverappliance.utils.nio.tar.EAATar
Layer on top of Apache Commons Compress TarArchiveEntry and TarArchiveInputStream.
The Wikipedia article on tar files https://en.wikipedia.org/wiki/Tar_(computing) is quite comprehensive.
This class can also be used as a command line utility to do basic operations on tar files.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendFiles(List<TarEntry> inputs) voidappendFiles(List<TarEntry> inputs, TarEntry lastEntryInTarFile) voidextract(TarEntry entry, WritableByteChannel destChannel) voidextractFile(TarEntry entry, WritableByteChannel destChannel) getReadOnlyByteChannel(TarEntry entry) booleanstatic voidvoidmarkFileAsDeleted(TarEntry entry) voidoptimize()voidparseCatalog(Predicate<TarEntry> filter) voidrenameEntry(TarEntry entry, String newEntryName)
-
Field Details
-
LOGICAL_DELETE_PREFIX
- See Also:
-
-
Constructor Details
-
EAATar
- Throws:
IOException
-
-
Method Details
-
getTarFileName
-
parseCatalog
- Throws:
IOException
-
loadCatalog
- Throws:
IOException
-
hasDeletedEntries
- Throws:
IOException
-
getReadOnlyByteChannel
- Throws:
IOException
-
extract
- Throws:
IOException
-
extractFile
- Throws:
IOException
-
appendFiles
- Throws:
IOException
-
appendFiles
- Throws:
IOException
-
markFileAsDeleted
- Throws:
IOException
-
renameEntry
- Throws:
IOException
-
optimize
- Throws:
IOException
-
main
- Throws:
Exception
-