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