code: public void printTags() {
      for (TagValue ie : tags.getTags()) {
        try {
          String name = "" + ie.getId();
          if (TiffTags.hasTag(ie.getId()))
            name = TiffTags.getTag(ie.getId()).getName();
          String val = ie.toString();
          String type = TiffTags.tagTypes.get(ie.getType());
          System.out.println(name + "(" + ie.getType() + "->" + type + "): " + val);
        } catch (Exception ex) {
          System.out.println("Tag error");
        }
      }
    }
docs: Prints the tags.