code: private void writeCompressedTexts(File dir, HashMap contents) throws IOException
      {
          String filename;
  
          for (Iterator nameIt = contents.keySet().iterator(); nameIt.hasNext();)
          {
              filename = (String)nameIt.next();
              writeCompressedText(new File(dir, filename), (byte[])contents.get(filename));
          }
      }
docs: Uncompresses the textual contents in the given map and and writes them to the files
  denoted by the keys of the map.
  
  @param dir      The base directory into which the files will be written
  @param contents The map containing the contents indexed by the filename
  @throws IOException If an error occurred