title: I have more than 100000 files, How to read those files using the Hashmap in android?
body: <p>I am working on android expansion files, during the process I am using the Hashmap functions to store the files and read. While reading the files, only 21900 files can be read but I actually have more than 100000 files. The remaining files can not be read from the OBB file. How to read the whole files? </p>
  
  <pre><code>public InputStream getInputStream(String assetPath) throws IOException {
      ZipEntryRO entry = mHashMap.get(assetPath);
      if (mHashMap.containsKey(assetPath) ) {
          if (entry.isUncompressed()) {
              return entry.getAssetFileDescriptor().createInputStream();
          } else {
              ZipFile zf = mZipFiles.get(entry.getZipFile());
              /** read compressed files **/
              if (null == zf) {
                  zf = new ZipFile(entry.getZipFile(), ZipFile.OPEN_READ);
                  mZipFiles.put(entry.getZipFile(), zf);
              }
              ZipEntry zi = zf.getEntry(assetPath);
              if (null != zi)
                  return zf.getInputStream(zi);
          }
      }
      return null;
  }
  </code></pre>