Java String Format getImageWriter(String formatName)

Here you can find the source of getImageWriter(String formatName)

Description

get Image Writer

License

Open Source License

Declaration

private static ImageWriter getImageWriter(String formatName) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.Iterator;

import javax.imageio.ImageIO;
import javax.imageio.ImageWriter;

public class Main {
    private static ImageWriter getImageWriter(String formatName) {
        Iterator<ImageWriter> it = ImageIO.getImageWritersByFormatName(formatName);
        if (it.hasNext()) {
            return it.next();
        }/*w ww .  j a v a2s . c  o  m*/
        return null;
    }
}

Related

  1. getFormattedString(ResourceBundle b, String key, Object... params)
  2. getFormattedString(String key, Object arg)
  3. getFormattedString(String p_bundleName, String p_key, Locale p_locale, Object[] p_arguments)
  4. getFormatValue(String value, Object[] args)
  5. getImageWriter(ImageTypeSpecifier imageType, String imageFormatName)
  6. getRequriedArgumentCount(MessageFormat msgFormat)
  7. getStylingHyphenFormat(String cssProperties)
  8. getTextAsFormattedLines(String text, int lineLength)
  9. getWriterByFormat(final String format)