public static Iterator<ImageWriter> getImageWritersBySuffix(String fileSuffix) {
		if (fileSuffix == null) {
			throw new IllegalArgumentException("fileSuffix == null!");
		}
		Iterator iter;
		// Ensure category is present
		try {
			iter = theRegistry.getServiceProviders(ImageWriterSpi.class, new ContainsFilter(writerFileSuffixesMethod, fileSuffix), true);
		} catch (IllegalArgumentException e) {
			return new HashSet().iterator();
		}
		return new ImageWriterIterator(iter);
	}
public static Iterator < ImageWriter > getImageWritersBySuffix ( String fileSuffix ) { if ( fileSuffix == null ) { throw new IllegalArgumentException ( "fileSuffix == null!" ) ; } Iterator iter ; try { iter = theRegistry . getServiceProviders ( ImageWriterSpi . class , new ContainsFilter ( writerFileSuffixesMethod , fileSuffix ) , true ) ; } catch ( IllegalArgumentException e ) { return new HashSet ( ) . iterator ( ) ; } return new ImageWriterIterator ( iter ) ; }
Returns an <code>Iterator</code> containing all currently registered <code>ImageWriter</code>s that
claim to be able to encode files with the given suffix.

@param fileSuffix
a <code>String</code> containing a file suffix (<i>e.g.</i>, "jpg" or "tiff").

@return an <code>Iterator</code> containing <code>ImageWriter</code>s.

@exception IllegalArgumentException
if <code>fileSuffix</code> is <code>null</code>.

@see javax.imageio.spi.ImageWriterSpi#getFileSuffixes