javax.imageio.spi.ImageReaderWriterSpi Java Examples
The following examples show how to use
javax.imageio.spi.ImageReaderWriterSpi.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ImageIO.java From dragonwell8_jdk with GNU General Public License v2.0 | 6 votes |
private static <S extends ImageReaderWriterSpi> String[] getReaderWriterInfo(Class<S> spiClass, SpiInfo spiInfo) { // Ensure category is present Iterator<S> iter; try { iter = theRegistry.getServiceProviders(spiClass, true); } catch (IllegalArgumentException e) { return new String[0]; } HashSet<String> s = new HashSet<String>(); while (iter.hasNext()) { ImageReaderWriterSpi spi = iter.next(); Collections.addAll(s, spiInfo.info(spi)); } return s.toArray(new String[s.size()]); }
Example #2
Source File: ImageIO.java From Java8CN with Apache License 2.0 | 6 votes |
private static <S extends ImageReaderWriterSpi> String[] getReaderWriterInfo(Class<S> spiClass, SpiInfo spiInfo) { // Ensure category is present Iterator<S> iter; try { iter = theRegistry.getServiceProviders(spiClass, true); } catch (IllegalArgumentException e) { return new String[0]; } HashSet<String> s = new HashSet<String>(); while (iter.hasNext()) { ImageReaderWriterSpi spi = iter.next(); Collections.addAll(s, spiInfo.info(spi)); } return s.toArray(new String[s.size()]); }
Example #3
Source File: ImageIO.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
private static <S extends ImageReaderWriterSpi> String[] getReaderWriterInfo(Class<S> spiClass, SpiInfo spiInfo) { // Ensure category is present Iterator<S> iter; try { iter = theRegistry.getServiceProviders(spiClass, true); } catch (IllegalArgumentException e) { return new String[0]; } HashSet<String> s = new HashSet<String>(); while (iter.hasNext()) { ImageReaderWriterSpi spi = iter.next(); Collections.addAll(s, spiInfo.info(spi)); } return s.toArray(new String[s.size()]); }
Example #4
Source File: ImageIO.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
private static <S extends ImageReaderWriterSpi> String[] getReaderWriterInfo(Class<S> spiClass, SpiInfo spiInfo) { // Ensure category is present Iterator<S> iter; try { iter = theRegistry.getServiceProviders(spiClass, true); } catch (IllegalArgumentException e) { return new String[0]; } HashSet<String> s = new HashSet<String>(); while (iter.hasNext()) { ImageReaderWriterSpi spi = iter.next(); Collections.addAll(s, spiInfo.info(spi)); } return s.toArray(new String[s.size()]); }
Example #5
Source File: ImageIO.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
private static <S extends ImageReaderWriterSpi> String[] getReaderWriterInfo(Class<S> spiClass, SpiInfo spiInfo) { // Ensure category is present Iterator<S> iter; try { iter = theRegistry.getServiceProviders(spiClass, true); } catch (IllegalArgumentException e) { return new String[0]; } HashSet<String> s = new HashSet<String>(); while (iter.hasNext()) { ImageReaderWriterSpi spi = iter.next(); Collections.addAll(s, spiInfo.info(spi)); } return s.toArray(new String[s.size()]); }
Example #6
Source File: ImageIO.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
private static <S extends ImageReaderWriterSpi> String[] getReaderWriterInfo(Class<S> spiClass, SpiInfo spiInfo) { // Ensure category is present Iterator<S> iter; try { iter = theRegistry.getServiceProviders(spiClass, true); } catch (IllegalArgumentException e) { return new String[0]; } HashSet<String> s = new HashSet<String>(); while (iter.hasNext()) { ImageReaderWriterSpi spi = iter.next(); Collections.addAll(s, spiInfo.info(spi)); } return s.toArray(new String[s.size()]); }
Example #7
Source File: ImageIO.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
private static <S extends ImageReaderWriterSpi> String[] getReaderWriterInfo(Class<S> spiClass, SpiInfo spiInfo) { // Ensure category is present Iterator<S> iter; try { iter = theRegistry.getServiceProviders(spiClass, true); } catch (IllegalArgumentException e) { return new String[0]; } HashSet<String> s = new HashSet<String>(); while (iter.hasNext()) { ImageReaderWriterSpi spi = iter.next(); Collections.addAll(s, spiInfo.info(spi)); } return s.toArray(new String[s.size()]); }
Example #8
Source File: ImageIOGreyScale.java From multimedia-indexing with Apache License 2.0 | 6 votes |
private static <S extends ImageReaderWriterSpi> String[] getReaderWriterInfo(Class<S> spiClass, SpiInfo spiInfo) { // Ensure category is present Iterator<S> iter; try { iter = theRegistry.getServiceProviders(spiClass, true); } catch (IllegalArgumentException e) { return new String[0]; } HashSet<String> s = new HashSet<String>(); while (iter.hasNext()) { ImageReaderWriterSpi spi = iter.next(); Collections.addAll(s, spiInfo.info(spi)); } return s.toArray(new String[s.size()]); }
Example #9
Source File: ImageIO.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
private static <S extends ImageReaderWriterSpi> String[] getReaderWriterInfo(Class<S> spiClass, SpiInfo spiInfo) { // Ensure category is present Iterator<S> iter; try { iter = theRegistry.getServiceProviders(spiClass, true); } catch (IllegalArgumentException e) { return new String[0]; } HashSet<String> s = new HashSet<String>(); while (iter.hasNext()) { ImageReaderWriterSpi spi = iter.next(); Collections.addAll(s, spiInfo.info(spi)); } return s.toArray(new String[s.size()]); }
Example #10
Source File: ImageIO.java From hottub with GNU General Public License v2.0 | 6 votes |
private static <S extends ImageReaderWriterSpi> String[] getReaderWriterInfo(Class<S> spiClass, SpiInfo spiInfo) { // Ensure category is present Iterator<S> iter; try { iter = theRegistry.getServiceProviders(spiClass, true); } catch (IllegalArgumentException e) { return new String[0]; } HashSet<String> s = new HashSet<String>(); while (iter.hasNext()) { ImageReaderWriterSpi spi = iter.next(); Collections.addAll(s, spiInfo.info(spi)); } return s.toArray(new String[s.size()]); }
Example #11
Source File: ImageIO.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
private static <S extends ImageReaderWriterSpi> String[] getReaderWriterInfo(Class<S> spiClass, SpiInfo spiInfo) { // Ensure category is present Iterator<S> iter; try { iter = theRegistry.getServiceProviders(spiClass, true); } catch (IllegalArgumentException e) { return new String[0]; } HashSet<String> s = new HashSet<>(); while (iter.hasNext()) { ImageReaderWriterSpi spi = iter.next(); String[] info = spiInfo.info(spi); if (info != null) { Collections.addAll(s, info); } } return s.toArray(new String[s.size()]); }
Example #12
Source File: ImageIO.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
private static <S extends ImageReaderWriterSpi> String[] getReaderWriterInfo(Class<S> spiClass, SpiInfo spiInfo) { // Ensure category is present Iterator<S> iter; try { iter = theRegistry.getServiceProviders(spiClass, true); } catch (IllegalArgumentException e) { return new String[0]; } HashSet<String> s = new HashSet<String>(); while (iter.hasNext()) { ImageReaderWriterSpi spi = iter.next(); Collections.addAll(s, spiInfo.info(spi)); } return s.toArray(new String[s.size()]); }
Example #13
Source File: ImageIO.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
private static <S extends ImageReaderWriterSpi> String[] getReaderWriterInfo(Class<S> spiClass, SpiInfo spiInfo) { // Ensure category is present Iterator<S> iter; try { iter = theRegistry.getServiceProviders(spiClass, true); } catch (IllegalArgumentException e) { return new String[0]; } HashSet<String> s = new HashSet<String>(); while (iter.hasNext()) { ImageReaderWriterSpi spi = iter.next(); Collections.addAll(s, spiInfo.info(spi)); } return s.toArray(new String[s.size()]); }
Example #14
Source File: ImageIO.java From jdk1.8-source-analysis with Apache License 2.0 | 6 votes |
private static <S extends ImageReaderWriterSpi> String[] getReaderWriterInfo(Class<S> spiClass, SpiInfo spiInfo) { // Ensure category is present Iterator<S> iter; try { iter = theRegistry.getServiceProviders(spiClass, true); } catch (IllegalArgumentException e) { return new String[0]; } HashSet<String> s = new HashSet<String>(); while (iter.hasNext()) { ImageReaderWriterSpi spi = iter.next(); Collections.addAll(s, spiInfo.info(spi)); } return s.toArray(new String[s.size()]); }
Example #15
Source File: ImageIO.java From jdk8u_jdk with GNU General Public License v2.0 | 6 votes |
private static <S extends ImageReaderWriterSpi> String[] getReaderWriterInfo(Class<S> spiClass, SpiInfo spiInfo) { // Ensure category is present Iterator<S> iter; try { iter = theRegistry.getServiceProviders(spiClass, true); } catch (IllegalArgumentException e) { return new String[0]; } HashSet<String> s = new HashSet<String>(); while (iter.hasNext()) { ImageReaderWriterSpi spi = iter.next(); Collections.addAll(s, spiInfo.info(spi)); } return s.toArray(new String[s.size()]); }
Example #16
Source File: ImageIO.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 6 votes |
private static <S extends ImageReaderWriterSpi> String[] getReaderWriterInfo(Class<S> spiClass, SpiInfo spiInfo) { // Ensure category is present Iterator<S> iter; try { iter = theRegistry.getServiceProviders(spiClass, true); } catch (IllegalArgumentException e) { return new String[0]; } HashSet<String> s = new HashSet<String>(); while (iter.hasNext()) { ImageReaderWriterSpi spi = iter.next(); Collections.addAll(s, spiInfo.info(spi)); } return s.toArray(new String[s.size()]); }
Example #17
Source File: ImageIO.java From JDKSourceCode1.8 with MIT License | 6 votes |
private static <S extends ImageReaderWriterSpi> String[] getReaderWriterInfo(Class<S> spiClass, SpiInfo spiInfo) { // Ensure category is present Iterator<S> iter; try { iter = theRegistry.getServiceProviders(spiClass, true); } catch (IllegalArgumentException e) { return new String[0]; } HashSet<String> s = new HashSet<String>(); while (iter.hasNext()) { ImageReaderWriterSpi spi = iter.next(); Collections.addAll(s, spiInfo.info(spi)); } return s.toArray(new String[s.size()]); }
Example #18
Source File: SpiTest.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public void testSpi(ImageWriterSpi spi) { testSpi((ImageReaderWriterSpi)spi); Class[] outputTypes = spi.getOutputTypes(); if (outputTypes == null) { error("outputTypes == null!"); } if (outputTypes.length == 0) { error("outputTypes.length == 0!"); } String[] readerSpiNames = spi.getImageReaderSpiNames(); if (readerSpiNames != null && readerSpiNames.length == 0) { error("readerSpiNames.length == 0!"); } }
Example #19
Source File: SpiTest.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
public void testSpi(ImageWriterSpi spi) { testSpi((ImageReaderWriterSpi)spi); Class[] outputTypes = spi.getOutputTypes(); if (outputTypes == null) { error("outputTypes == null!"); } if (outputTypes.length == 0) { error("outputTypes.length == 0!"); } String[] readerSpiNames = spi.getImageReaderSpiNames(); if (readerSpiNames != null && readerSpiNames.length == 0) { error("readerSpiNames.length == 0!"); } }
Example #20
Source File: SpiTest.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public void testSpi(ImageReaderSpi spi) { testSpi((ImageReaderWriterSpi)spi); Class[] inputTypes = spi.getInputTypes(); if (inputTypes == null) { error("inputTypes == null!"); } if (inputTypes.length == 0) { error("inputTypes.length == 0!"); } String[] writerSpiNames = spi.getImageWriterSpiNames(); if (writerSpiNames != null && writerSpiNames.length == 0) { error("writerSpiNames.length == 0!"); } }
Example #21
Source File: SpiTest.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
private void testSpi(ImageReaderWriterSpi spi) { testSpi((IIOServiceProvider)spi); if (spi.getFormatNames() == null) { error("spi.getFormatNames == null!"); } String[] suffixes = spi.getFileSuffixes(); if (suffixes != null && suffixes.length == 0) { error("suffixes.length == 0!"); } String[] MIMETypes = spi.getMIMETypes(); if (MIMETypes != null && MIMETypes.length == 0) { error("MIMETypes.length == 0!"); } if (spi.getPluginClassName() == null) { error("spi.getPluginClassName == null!"); } String[] extraStreamMetadataFormatNames = spi.getExtraStreamMetadataFormatNames(); if (extraStreamMetadataFormatNames != null && extraStreamMetadataFormatNames.length == 0) { error("extraStreamMetadataFormatNames.length == 0!"); } String[] extraImageMetadataFormatNames = spi.getExtraImageMetadataFormatNames(); if (extraImageMetadataFormatNames != null && extraImageMetadataFormatNames.length == 0) { error("extraImageMetadataFormatNames.length == 0!"); } }
Example #22
Source File: ImageIO.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
@Override String[] info(ImageReaderWriterSpi spi) { return spi.getFormatNames(); }
Example #23
Source File: ImageIOGreyScale.java From multimedia-indexing with Apache License 2.0 | 4 votes |
@Override String[] info(ImageReaderWriterSpi spi) { return spi.getFormatNames(); }
Example #24
Source File: ImageIO.java From jdk8u_jdk with GNU General Public License v2.0 | 4 votes |
@Override String[] info(ImageReaderWriterSpi spi) { return spi.getFormatNames(); }
Example #25
Source File: ImageIO.java From jdk8u_jdk with GNU General Public License v2.0 | 4 votes |
@Override String[] info(ImageReaderWriterSpi spi) { return spi.getMIMETypes(); }
Example #26
Source File: ImageIO.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
@Override String[] info(ImageReaderWriterSpi spi) { return spi.getMIMETypes(); }
Example #27
Source File: ImageIO.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
@Override String[] info(ImageReaderWriterSpi spi) { return spi.getFormatNames(); }
Example #28
Source File: ImageIO.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 4 votes |
@Override String[] info(ImageReaderWriterSpi spi) { return spi.getFileSuffixes(); }
Example #29
Source File: ImageIO.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
@Override String[] info(ImageReaderWriterSpi spi) { return spi.getFileSuffixes(); }
Example #30
Source File: ImageIO.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
@Override String[] info(ImageReaderWriterSpi spi) { return spi.getMIMETypes(); }