code: @SuppressWarnings("nls")
      public static ImageWriter findWriter() {
          Iterator<ImageWriter> writers = ImageIO.getImageWritersByFormatName("jpeg");
          ImageWriter writer = null;
          while( writers.hasNext() ) {
              writer = (ImageWriter) writers.next();
              if (writer.getClass().getName().startsWith("com.sun.imageio")) {
                  break;
              }
          }
          return writer;
      }
docs: Find jpeg {@link ImageWriter writer}.
  
  @return the writer or <code>null</code>.