public class ZipResourceFile extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ZipResourceFile.ZipEntryRO |
| Constructor and Description |
|---|
ZipResourceFile(String zipFileName) |
| Modifier and Type | Method and Description |
|---|---|
ZipResourceFile.ZipEntryRO[] |
getAllEntries() |
android.content.res.AssetFileDescriptor |
getAssetFileDescriptor(String assetPath)
getAssetFileDescriptor allows for ZipResourceFile to directly feed
Android API's that want an fd, offset, and length such as the
MediaPlayer.
|
InputStream |
getInputStream(String assetPath)
getInputStream returns an AssetFileDescriptor.AutoCloseInputStream
associated with the asset that is contained in the Zip file, or a
standard ZipInputStream if necessary to uncompress the file
|
public ZipResourceFile(String zipFileName) throws IOException
IOExceptionpublic ZipResourceFile.ZipEntryRO[] getAllEntries()
public android.content.res.AssetFileDescriptor getAssetFileDescriptor(String assetPath)
assetPath - public InputStream getInputStream(String assetPath) throws IOException
assetPath - IOExceptionCopyright © 2016. All rights reserved.