code: public void dump(Writer writer) {
          PrintWriter printer = new PrintWriter(writer);
          for (String sectionType : sectionsByType.keySet()) {
              int sectionNumber = 0;
              for (Section section : sectionsByType.get(sectionType)) {
                  printer.printf("%s [%d]%n", sectionType, sectionNumber++);
                  for (String key : section) {
                      printer.printf(" %30s -> %s%n", key, section.value(key));
                  }
              }
              printer.println();
          }
          try {
              writer.flush();
          }
          catch (IOException e) {
              throw new RuntimeException(e);
          }
      }
docs: Dump out the media information in a readable format.
  <p>
  This is easier to read than a standard {@link #toString()}.
  <p>
  This should only be used for debugging purposes.
  
  @param writer writer to dump the media information to