-
public class ZipResourceFile
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classZipResourceFile.ZipEntryRO
-
Constructor Summary
Constructors Constructor Description ZipResourceFile(String zipFileName)
-
Method Summary
Modifier and Type Method Description Array<ZipResourceFile.ZipEntryRO>getAllEntries()AssetFileDescriptorgetAssetFileDescriptor(String assetPath)getAssetFileDescriptor allows for ZipResourceFile to directly feed Android API's that want an fd, offset, and length suchas the MediaPlayer. InputStreamgetInputStream(String assetPath)getInputStream returns an AssetFileDescriptor. -
-
Constructor Detail
-
ZipResourceFile
ZipResourceFile(String zipFileName)
-
-
Method Detail
-
getAllEntries
Array<ZipResourceFile.ZipEntryRO> getAllEntries()
-
getAssetFileDescriptor
AssetFileDescriptor getAssetFileDescriptor(String assetPath)
getAssetFileDescriptor allows for ZipResourceFile to directly feed Android API's that want an fd, offset, and length suchas the MediaPlayer. It also allows for the class to be used in a content provider that can feed video players. The file mustbe stored (non-compressed) in the Zip file for this to work.
-
getInputStream
InputStream getInputStream(String assetPath)
getInputStream returns an AssetFileDescriptor.AutoCloseInputStream associated with the asset that is contained in the Zipfile, or a standard ZipInputStream if necessary to uncompress the file
-
-
-
-