public class ZipResourceFile
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ZipResourceFile.ZipEntryRO |
| Modifier and Type | Field and Description |
|---|---|
java.util.HashMap<java.io.File,java.util.zip.ZipFile> |
mZipFiles |
| Constructor and Description |
|---|
ZipResourceFile(java.lang.String zipFileName) |
| Modifier and Type | Method and Description |
|---|---|
ZipResourceFile.ZipEntryRO[] |
getAllEntries() |
android.content.res.AssetFileDescriptor |
getAssetFileDescriptor(java.lang.String assetPath)
getAssetFileDescriptor allows for ZipResourceFile to directly feed
Android API's that want an fd, offset, and length such as the
MediaPlayer.
|
java.io.InputStream |
getInputStream(java.lang.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(java.lang.String zipFileName)
throws java.io.IOException
java.io.IOExceptionpublic ZipResourceFile.ZipEntryRO[] getAllEntries()
public android.content.res.AssetFileDescriptor getAssetFileDescriptor(java.lang.String assetPath)
assetPath - public java.io.InputStream getInputStream(java.lang.String assetPath)
throws java.io.IOException
assetPath - java.io.IOException