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 classThe classTgzEntryWrappercontains 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 TypeMethodDescriptionvoidclose()The methodcloseprovides means to close the stream.voidThe methodcloseEntryprovides means to close the current entry.getName()The methodgetNameprovides means to retrieve the file name.The methodgetNextEntryprovides means to move to the next entry.The methodgetStreamprovides 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 methodcloseprovides means to close the stream.- Specified by:
closein interfaceArchive- Throws:
IOException- in case of an I/O error- See Also:
-
closeEntry
public void closeEntry()The methodcloseEntryprovides means to close the current entry.- Specified by:
closeEntryin interfaceArchive- See Also:
-
getName
The methodgetNameprovides means to retrieve the file name. -
getNextEntry
The methodgetNextEntryprovides means to move to the next entry.- Specified by:
getNextEntryin interfaceArchive- Returns:
- the next entry
- Throws:
IOException- in case of an I/O error- See Also:
-
getStream
The methodgetStreamprovides means to get the InputStream for the current entry.
-