code: private void readTextsCompressed(File dir, HashMap results) throws IOException
      {
          if (dir.exists() && dir.isDirectory())
          {
              File[] files = dir.listFiles();
  
              for (int idx = 0; idx < files.length; idx++)
              {
                  if (files[idx].isDirectory())
                  {
                      continue;
                  }
                  results.put(files[idx].getName(), readTextCompressed(files[idx]));
              }
          }
      }
docs: Reads the text files in the given directory and puts their content
  in the given map after compressing it. Note that this method does not
  traverse recursivly into sub-directories.
  
  @param dir     The directory to process
  @param results Map that will receive the contents (indexed by the relative filenames)
  @throws IOException If an error ocurred