Class TgzArchiveWrapper
java.lang.Object
org.ctan.site.services.upload.util.archive.TgzArchiveWrapper
- All Implemented Interfaces:
Archive
The class
TgzArchiveWrapper
contains an adaptor for a TGZ
archive.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
The classTgzEntryWrapper
contains the wrapper for an entry.Nested classes/interfaces inherited from interface org.ctan.site.services.upload.util.archive.Archive
Archive.Entry
-
Constructor Summary
ConstructorsConstructorDescriptionTgzArchiveWrapper
(String name, @NonNull InputStream in) This is the constructor forZipArchive
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
The methodclose
provides means to close the stream.void
The methodcloseEntry
provides means to close the current entry.getName()
The methodgetName
provides means to retrieve the file name.The methodgetNextEntry
provides means to move to the next entry.The methodgetStream
provides means to get the InputStream for the current entry.
-
Constructor Details
-
TgzArchiveWrapper
This is the constructor forZipArchive
.- Parameters:
name
- the file namein
- the wrapped input stream- Throws:
IOException
- in case of an I/O error
-
-
Method Details
-
close
The methodclose
provides means to close the stream.- Specified by:
close
in interfaceArchive
- Throws:
IOException
- in case of an I/O error- See Also:
-
closeEntry
public void closeEntry()The methodcloseEntry
provides means to close the current entry.- Specified by:
closeEntry
in interfaceArchive
- See Also:
-
getName
The methodgetName
provides means to retrieve the file name. -
getNextEntry
The methodgetNextEntry
provides means to move to the next entry.- Specified by:
getNextEntry
in interfaceArchive
- Returns:
- the next entry
- Throws:
IOException
- in case of an I/O error- See Also:
-
getStream
The methodgetStream
provides means to get the InputStream for the current entry.
-