| Modifier and Type | Method and Description |
|---|---|
void |
close()
closes the currently open ZipEntry and ZipOutpuStream
|
void |
closeEntry()
closes the currently used ZipEntry
|
boolean |
containsEntry(String entryname) |
String |
getCurrentEntryName()
returns the name of the currently 'open' ZipEntry
|
File |
getFile()
returns the currently used file instance (could be null)
|
String |
getFileExtension()
Returns the file extension of the file associated with this instance.
|
String |
getMimeType()
returns the mime type (here: MediaManager.getInstance().getMimeTypeByExtension( EXTENSION_ZIP ))
|
OutputStream |
getOutputStream()
returns the currently used ZipOutputStream
|
boolean |
hasOpenEntry()
returns true if there exists an 'open' ZipEntry
|
void |
startNewEntry(String filename)
creates a new ZipEntry with the specified name
|
public ImpExZip()
throws IOException
IOExceptionpublic ImpExZip(String fileName) throws IOException
fileName - IOExceptionpublic OutputStream getOutputStream()
getOutputStream in interface ImpExFilepublic void startNewEntry(String filename) throws IOException
filename - name of the new ZipEntryIOExceptionpublic boolean hasOpenEntry()
public String getCurrentEntryName()
public void close()
throws IOException
close in interface ImpExFileIOExceptionpublic void closeEntry()
throws IOException
IOExceptionpublic File getFile()
public String getMimeType()
getMimeType in interface ImpExFilepublic String getFileExtension()
ImpExFilegetFileExtension in interface ImpExFilepublic boolean containsEntry(String entryname)
Copyright © 2017 SAP SE. All Rights Reserved.