Class ZipArchiveWrapper
java.lang.Object
org.ctan.site.services.upload.util.archive.ZipArchiveWrapper
- All Implemented Interfaces:
Archive
The class
Archive contains the wrapper for a ZIP archive.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe classZipEntryWrappercontains the wrapper for an entry.Nested classes/interfaces inherited from interface org.ctan.site.services.upload.util.archive.Archive
Archive.Entry -
Constructor Summary
ConstructorsConstructorDescriptionZipArchiveWrapper(@NonNull String name, @NonNull InputStream in) This is the constructor forZipArchiveWrapper. -
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
-
ZipArchiveWrapper
This is the constructor forZipArchiveWrapper.- Parameters:
name- the file namein- the wrapped input stream
-
-
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
The methodcloseEntryprovides means to close the current entry.- Specified by:
closeEntryin interfaceArchive- Throws:
IOException- in case of an I/O error- 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.
-