Package 

Class ZipResourceFile

    • Constructor Detail

      • ZipResourceFile

        ZipResourceFile(String zipFileName)
    • Method Detail

      • 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