code: public static void registerInputStreamHandler(MimeType.Trait trait, InputStreamHandler handler) {
          $.requireNotNull(handler);
          List<MimeType> mimeTypes = MimeType.filterByTrait(trait);
          for (MimeType mimeType : mimeTypes) {
              registerInputStreamHandler(mimeType, handler);
          }
      }
docs: Register an {@link InputStreamHandler} with all {@link MimeType mime types} by {@link MimeType.Trait}.
  
  @param trait
  the trait of mimetype
  @param handler
  the input stream handler