Java Code Examples for javax.imageio.spi.ImageReaderSpi#getImageMetadataFormat()
The following examples show how to use
javax.imageio.spi.ImageReaderSpi#getImageMetadataFormat() .
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: TestSIMPPlugin.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public static void main(String args[]) throws Exception { Iterator<ImageReader> readers = ImageIO.getImageReadersBySuffix("simp"); ImageReader simpReader = null; if (readers.hasNext()) { simpReader = readers.next(); System.out.println("reader="+simpReader); } if (simpReader == null) { throw new RuntimeException("Reader not found."); } ImageReaderSpi spi = simpReader.getOriginatingProvider(); IIOMetadataFormat spiFmt = spi.getImageMetadataFormat("simp_metadata_1.0"); System.out.println("fmt from SPI=" + spiFmt); ByteArrayInputStream bais = new ByteArrayInputStream(simpData); ImageInputStream iis = new MemoryCacheImageInputStream(bais); simpReader.setInput(iis); BufferedImage bi = simpReader.read(0); System.out.println(bi); IIOMetadata metadata = simpReader.getImageMetadata(0); System.out.println("Image metadata="+metadata); IIOMetadataFormat format = metadata.getMetadataFormat("simp_metadata_1.0"); System.out.println("Image metadata format="+format); if (format == null) { throw new RuntimeException("MetadataFormat not found."); } }
Example 2
Source File: MetadataFormatPrinter.java From dragonwell8_jdk with GNU General Public License v2.0 | 4 votes |
public static void main(String[] args) { IIOMetadataFormat format = null; if (args.length == 0 || args[0].equals("javax_imageio_1.0")) { format = IIOMetadataFormatImpl.getStandardFormatInstance(); } else { IIORegistry registry = IIORegistry.getDefaultInstance(); Iterator iter = registry.getServiceProviders(ImageReaderSpi.class, false); while (iter.hasNext()) { ImageReaderSpi spi = (ImageReaderSpi)iter.next(); if (args[0].equals (spi.getNativeStreamMetadataFormatName())) { System.out.print(spi.getDescription(null)); System.out.println(": native stream format"); format = spi.getStreamMetadataFormat(args[0]); break; } String[] extraStreamFormatNames = spi.getExtraStreamMetadataFormatNames(); if (extraStreamFormatNames != null && Arrays.asList(extraStreamFormatNames). contains(args[0])) { System.out.print(spi.getDescription(null)); System.out.println(": extra stream format"); format = spi.getStreamMetadataFormat(args[0]); break; } if (args[0].equals (spi.getNativeImageMetadataFormatName())) { System.out.print(spi.getDescription(null)); System.out.println(": native image format"); format = spi.getImageMetadataFormat(args[0]); break; } String[] extraImageFormatNames = spi.getExtraImageMetadataFormatNames(); if (extraImageFormatNames != null && Arrays.asList(extraImageFormatNames).contains(args[0])) { System.out.print(spi.getDescription(null)); System.out.println(": extra image format"); format = spi.getImageMetadataFormat(args[0]); break; } } } if (format == null) { System.err.println("Unknown format: " + args[0]); System.exit(0); } MetadataFormatPrinter printer = new MetadataFormatPrinter(System.out); printer.print(format); }
Example 3
Source File: MetadataFormatPrinter.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
public static void main(String[] args) { IIOMetadataFormat format = null; if (args.length == 0 || args[0].equals("javax_imageio_1.0")) { format = IIOMetadataFormatImpl.getStandardFormatInstance(); } else { IIORegistry registry = IIORegistry.getDefaultInstance(); Iterator iter = registry.getServiceProviders(ImageReaderSpi.class, false); while (iter.hasNext()) { ImageReaderSpi spi = (ImageReaderSpi)iter.next(); if (args[0].equals (spi.getNativeStreamMetadataFormatName())) { System.out.print(spi.getDescription(null)); System.out.println(": native stream format"); format = spi.getStreamMetadataFormat(args[0]); break; } String[] extraStreamFormatNames = spi.getExtraStreamMetadataFormatNames(); if (extraStreamFormatNames != null && Arrays.asList(extraStreamFormatNames). contains(args[0])) { System.out.print(spi.getDescription(null)); System.out.println(": extra stream format"); format = spi.getStreamMetadataFormat(args[0]); break; } if (args[0].equals (spi.getNativeImageMetadataFormatName())) { System.out.print(spi.getDescription(null)); System.out.println(": native image format"); format = spi.getImageMetadataFormat(args[0]); break; } String[] extraImageFormatNames = spi.getExtraImageMetadataFormatNames(); if (extraImageFormatNames != null && Arrays.asList(extraImageFormatNames).contains(args[0])) { System.out.print(spi.getDescription(null)); System.out.println(": extra image format"); format = spi.getImageMetadataFormat(args[0]); break; } } } if (format == null) { System.err.println("Unknown format: " + args[0]); System.exit(0); } MetadataFormatPrinter printer = new MetadataFormatPrinter(System.out); printer.print(format); }
Example 4
Source File: MetadataFormatPrinter.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
public static void main(String[] args) { IIOMetadataFormat format = null; if (args.length == 0 || args[0].equals("javax_imageio_1.0")) { format = IIOMetadataFormatImpl.getStandardFormatInstance(); } else { IIORegistry registry = IIORegistry.getDefaultInstance(); Iterator iter = registry.getServiceProviders(ImageReaderSpi.class, false); while (iter.hasNext()) { ImageReaderSpi spi = (ImageReaderSpi)iter.next(); if (args[0].equals (spi.getNativeStreamMetadataFormatName())) { System.out.print(spi.getDescription(null)); System.out.println(": native stream format"); format = spi.getStreamMetadataFormat(args[0]); break; } String[] extraStreamFormatNames = spi.getExtraStreamMetadataFormatNames(); if (extraStreamFormatNames != null && Arrays.asList(extraStreamFormatNames). contains(args[0])) { System.out.print(spi.getDescription(null)); System.out.println(": extra stream format"); format = spi.getStreamMetadataFormat(args[0]); break; } if (args[0].equals (spi.getNativeImageMetadataFormatName())) { System.out.print(spi.getDescription(null)); System.out.println(": native image format"); format = spi.getImageMetadataFormat(args[0]); break; } String[] extraImageFormatNames = spi.getExtraImageMetadataFormatNames(); if (extraImageFormatNames != null && Arrays.asList(extraImageFormatNames).contains(args[0])) { System.out.print(spi.getDescription(null)); System.out.println(": extra image format"); format = spi.getImageMetadataFormat(args[0]); break; } } } if (format == null) { System.err.println("Unknown format: " + args[0]); System.exit(0); } MetadataFormatPrinter printer = new MetadataFormatPrinter(System.out); printer.print(format); }
Example 5
Source File: MetadataFormatPrinter.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public static void main(String[] args) { IIOMetadataFormat format = null; if (args.length == 0 || args[0].equals("javax_imageio_1.0")) { format = IIOMetadataFormatImpl.getStandardFormatInstance(); } else { IIORegistry registry = IIORegistry.getDefaultInstance(); Iterator iter = registry.getServiceProviders(ImageReaderSpi.class, false); while (iter.hasNext()) { ImageReaderSpi spi = (ImageReaderSpi)iter.next(); if (args[0].equals (spi.getNativeStreamMetadataFormatName())) { System.out.print(spi.getDescription(null)); System.out.println(": native stream format"); format = spi.getStreamMetadataFormat(args[0]); break; } String[] extraStreamFormatNames = spi.getExtraStreamMetadataFormatNames(); if (extraStreamFormatNames != null && Arrays.asList(extraStreamFormatNames). contains(args[0])) { System.out.print(spi.getDescription(null)); System.out.println(": extra stream format"); format = spi.getStreamMetadataFormat(args[0]); break; } if (args[0].equals (spi.getNativeImageMetadataFormatName())) { System.out.print(spi.getDescription(null)); System.out.println(": native image format"); format = spi.getImageMetadataFormat(args[0]); break; } String[] extraImageFormatNames = spi.getExtraImageMetadataFormatNames(); if (extraImageFormatNames != null && Arrays.asList(extraImageFormatNames).contains(args[0])) { System.out.print(spi.getDescription(null)); System.out.println(": extra image format"); format = spi.getImageMetadataFormat(args[0]); break; } } } if (format == null) { System.err.println("Unknown format: " + args[0]); System.exit(0); } MetadataFormatPrinter printer = new MetadataFormatPrinter(System.out); printer.print(format); }
Example 6
Source File: MetadataFormatPrinter.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public static void main(String[] args) { IIOMetadataFormat format = null; if (args.length == 0 || args[0].equals("javax_imageio_1.0")) { format = IIOMetadataFormatImpl.getStandardFormatInstance(); } else { IIORegistry registry = IIORegistry.getDefaultInstance(); Iterator iter = registry.getServiceProviders(ImageReaderSpi.class, false); while (iter.hasNext()) { ImageReaderSpi spi = (ImageReaderSpi)iter.next(); if (args[0].equals (spi.getNativeStreamMetadataFormatName())) { System.out.print(spi.getDescription(null)); System.out.println(": native stream format"); format = spi.getStreamMetadataFormat(args[0]); break; } String[] extraStreamFormatNames = spi.getExtraStreamMetadataFormatNames(); if (extraStreamFormatNames != null && Arrays.asList(extraStreamFormatNames). contains(args[0])) { System.out.print(spi.getDescription(null)); System.out.println(": extra stream format"); format = spi.getStreamMetadataFormat(args[0]); break; } if (args[0].equals (spi.getNativeImageMetadataFormatName())) { System.out.print(spi.getDescription(null)); System.out.println(": native image format"); format = spi.getImageMetadataFormat(args[0]); break; } String[] extraImageFormatNames = spi.getExtraImageMetadataFormatNames(); if (extraImageFormatNames != null && Arrays.asList(extraImageFormatNames).contains(args[0])) { System.out.print(spi.getDescription(null)); System.out.println(": extra image format"); format = spi.getImageMetadataFormat(args[0]); break; } } } if (format == null) { System.err.println("Unknown format: " + args[0]); System.exit(0); } MetadataFormatPrinter printer = new MetadataFormatPrinter(System.out); printer.print(format); }
Example 7
Source File: MetadataFormatPrinter.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
public static void main(String[] args) { IIOMetadataFormat format = null; if (args.length == 0 || args[0].equals("javax_imageio_1.0")) { format = IIOMetadataFormatImpl.getStandardFormatInstance(); } else { IIORegistry registry = IIORegistry.getDefaultInstance(); Iterator iter = registry.getServiceProviders(ImageReaderSpi.class, false); while (iter.hasNext()) { ImageReaderSpi spi = (ImageReaderSpi)iter.next(); if (args[0].equals (spi.getNativeStreamMetadataFormatName())) { System.out.print(spi.getDescription(null)); System.out.println(": native stream format"); format = spi.getStreamMetadataFormat(args[0]); break; } String[] extraStreamFormatNames = spi.getExtraStreamMetadataFormatNames(); if (extraStreamFormatNames != null && Arrays.asList(extraStreamFormatNames). contains(args[0])) { System.out.print(spi.getDescription(null)); System.out.println(": extra stream format"); format = spi.getStreamMetadataFormat(args[0]); break; } if (args[0].equals (spi.getNativeImageMetadataFormatName())) { System.out.print(spi.getDescription(null)); System.out.println(": native image format"); format = spi.getImageMetadataFormat(args[0]); break; } String[] extraImageFormatNames = spi.getExtraImageMetadataFormatNames(); if (extraImageFormatNames != null && Arrays.asList(extraImageFormatNames).contains(args[0])) { System.out.print(spi.getDescription(null)); System.out.println(": extra image format"); format = spi.getImageMetadataFormat(args[0]); break; } } } if (format == null) { System.err.println("Unknown format: " + args[0]); System.exit(0); } MetadataFormatPrinter printer = new MetadataFormatPrinter(System.out); printer.print(format); }
Example 8
Source File: MetadataFormatPrinter.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
public static void main(String[] args) { IIOMetadataFormat format = null; if (args.length == 0 || args[0].equals("javax_imageio_1.0")) { format = IIOMetadataFormatImpl.getStandardFormatInstance(); } else { IIORegistry registry = IIORegistry.getDefaultInstance(); Iterator iter = registry.getServiceProviders(ImageReaderSpi.class, false); while (iter.hasNext()) { ImageReaderSpi spi = (ImageReaderSpi)iter.next(); if (args[0].equals (spi.getNativeStreamMetadataFormatName())) { System.out.print(spi.getDescription(null)); System.out.println(": native stream format"); format = spi.getStreamMetadataFormat(args[0]); break; } String[] extraStreamFormatNames = spi.getExtraStreamMetadataFormatNames(); if (extraStreamFormatNames != null && Arrays.asList(extraStreamFormatNames). contains(args[0])) { System.out.print(spi.getDescription(null)); System.out.println(": extra stream format"); format = spi.getStreamMetadataFormat(args[0]); break; } if (args[0].equals (spi.getNativeImageMetadataFormatName())) { System.out.print(spi.getDescription(null)); System.out.println(": native image format"); format = spi.getImageMetadataFormat(args[0]); break; } String[] extraImageFormatNames = spi.getExtraImageMetadataFormatNames(); if (extraImageFormatNames != null && Arrays.asList(extraImageFormatNames).contains(args[0])) { System.out.print(spi.getDescription(null)); System.out.println(": extra image format"); format = spi.getImageMetadataFormat(args[0]); break; } } } if (format == null) { System.err.println("Unknown format: " + args[0]); System.exit(0); } MetadataFormatPrinter printer = new MetadataFormatPrinter(System.out); printer.print(format); }
Example 9
Source File: MetadataFormatPrinter.java From hottub with GNU General Public License v2.0 | 4 votes |
public static void main(String[] args) { IIOMetadataFormat format = null; if (args.length == 0 || args[0].equals("javax_imageio_1.0")) { format = IIOMetadataFormatImpl.getStandardFormatInstance(); } else { IIORegistry registry = IIORegistry.getDefaultInstance(); Iterator iter = registry.getServiceProviders(ImageReaderSpi.class, false); while (iter.hasNext()) { ImageReaderSpi spi = (ImageReaderSpi)iter.next(); if (args[0].equals (spi.getNativeStreamMetadataFormatName())) { System.out.print(spi.getDescription(null)); System.out.println(": native stream format"); format = spi.getStreamMetadataFormat(args[0]); break; } String[] extraStreamFormatNames = spi.getExtraStreamMetadataFormatNames(); if (extraStreamFormatNames != null && Arrays.asList(extraStreamFormatNames). contains(args[0])) { System.out.print(spi.getDescription(null)); System.out.println(": extra stream format"); format = spi.getStreamMetadataFormat(args[0]); break; } if (args[0].equals (spi.getNativeImageMetadataFormatName())) { System.out.print(spi.getDescription(null)); System.out.println(": native image format"); format = spi.getImageMetadataFormat(args[0]); break; } String[] extraImageFormatNames = spi.getExtraImageMetadataFormatNames(); if (extraImageFormatNames != null && Arrays.asList(extraImageFormatNames).contains(args[0])) { System.out.print(spi.getDescription(null)); System.out.println(": extra image format"); format = spi.getImageMetadataFormat(args[0]); break; } } } if (format == null) { System.err.println("Unknown format: " + args[0]); System.exit(0); } MetadataFormatPrinter printer = new MetadataFormatPrinter(System.out); printer.print(format); }
Example 10
Source File: MetadataFormatPrinter.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
public static void main(String[] args) { IIOMetadataFormat format = null; if (args.length == 0 || args[0].equals("javax_imageio_1.0")) { format = IIOMetadataFormatImpl.getStandardFormatInstance(); } else { IIORegistry registry = IIORegistry.getDefaultInstance(); Iterator iter = registry.getServiceProviders(ImageReaderSpi.class, false); while (iter.hasNext()) { ImageReaderSpi spi = (ImageReaderSpi)iter.next(); if (args[0].equals (spi.getNativeStreamMetadataFormatName())) { System.out.print(spi.getDescription(null)); System.out.println(": native stream format"); format = spi.getStreamMetadataFormat(args[0]); break; } String[] extraStreamFormatNames = spi.getExtraStreamMetadataFormatNames(); if (extraStreamFormatNames != null && Arrays.asList(extraStreamFormatNames). contains(args[0])) { System.out.print(spi.getDescription(null)); System.out.println(": extra stream format"); format = spi.getStreamMetadataFormat(args[0]); break; } if (args[0].equals (spi.getNativeImageMetadataFormatName())) { System.out.print(spi.getDescription(null)); System.out.println(": native image format"); format = spi.getImageMetadataFormat(args[0]); break; } String[] extraImageFormatNames = spi.getExtraImageMetadataFormatNames(); if (extraImageFormatNames != null && Arrays.asList(extraImageFormatNames).contains(args[0])) { System.out.print(spi.getDescription(null)); System.out.println(": extra image format"); format = spi.getImageMetadataFormat(args[0]); break; } } } if (format == null) { System.err.println("Unknown format: " + args[0]); System.exit(0); } MetadataFormatPrinter printer = new MetadataFormatPrinter(System.out); printer.print(format); }
Example 11
Source File: MetadataFormatPrinter.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
public static void main(String[] args) { IIOMetadataFormat format = null; if (args.length == 0 || args[0].equals("javax_imageio_1.0")) { format = IIOMetadataFormatImpl.getStandardFormatInstance(); } else { IIORegistry registry = IIORegistry.getDefaultInstance(); Iterator iter = registry.getServiceProviders(ImageReaderSpi.class, false); while (iter.hasNext()) { ImageReaderSpi spi = (ImageReaderSpi)iter.next(); if (args[0].equals (spi.getNativeStreamMetadataFormatName())) { System.out.print(spi.getDescription(null)); System.out.println(": native stream format"); format = spi.getStreamMetadataFormat(args[0]); break; } String[] extraStreamFormatNames = spi.getExtraStreamMetadataFormatNames(); if (extraStreamFormatNames != null && Arrays.asList(extraStreamFormatNames). contains(args[0])) { System.out.print(spi.getDescription(null)); System.out.println(": extra stream format"); format = spi.getStreamMetadataFormat(args[0]); break; } if (args[0].equals (spi.getNativeImageMetadataFormatName())) { System.out.print(spi.getDescription(null)); System.out.println(": native image format"); format = spi.getImageMetadataFormat(args[0]); break; } String[] extraImageFormatNames = spi.getExtraImageMetadataFormatNames(); if (extraImageFormatNames != null && Arrays.asList(extraImageFormatNames).contains(args[0])) { System.out.print(spi.getDescription(null)); System.out.println(": extra image format"); format = spi.getImageMetadataFormat(args[0]); break; } } } if (format == null) { System.err.println("Unknown format: " + args[0]); System.exit(0); } MetadataFormatPrinter printer = new MetadataFormatPrinter(System.out); printer.print(format); }
Example 12
Source File: MetadataFormatPrinter.java From jdk8u_jdk with GNU General Public License v2.0 | 4 votes |
public static void main(String[] args) { IIOMetadataFormat format = null; if (args.length == 0 || args[0].equals("javax_imageio_1.0")) { format = IIOMetadataFormatImpl.getStandardFormatInstance(); } else { IIORegistry registry = IIORegistry.getDefaultInstance(); Iterator iter = registry.getServiceProviders(ImageReaderSpi.class, false); while (iter.hasNext()) { ImageReaderSpi spi = (ImageReaderSpi)iter.next(); if (args[0].equals (spi.getNativeStreamMetadataFormatName())) { System.out.print(spi.getDescription(null)); System.out.println(": native stream format"); format = spi.getStreamMetadataFormat(args[0]); break; } String[] extraStreamFormatNames = spi.getExtraStreamMetadataFormatNames(); if (extraStreamFormatNames != null && Arrays.asList(extraStreamFormatNames). contains(args[0])) { System.out.print(spi.getDescription(null)); System.out.println(": extra stream format"); format = spi.getStreamMetadataFormat(args[0]); break; } if (args[0].equals (spi.getNativeImageMetadataFormatName())) { System.out.print(spi.getDescription(null)); System.out.println(": native image format"); format = spi.getImageMetadataFormat(args[0]); break; } String[] extraImageFormatNames = spi.getExtraImageMetadataFormatNames(); if (extraImageFormatNames != null && Arrays.asList(extraImageFormatNames).contains(args[0])) { System.out.print(spi.getDescription(null)); System.out.println(": extra image format"); format = spi.getImageMetadataFormat(args[0]); break; } } } if (format == null) { System.err.println("Unknown format: " + args[0]); System.exit(0); } MetadataFormatPrinter printer = new MetadataFormatPrinter(System.out); printer.print(format); }
Example 13
Source File: MetadataFormatPrinter.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
public static void main(String[] args) { IIOMetadataFormat format = null; if (args.length == 0 || args[0].equals("javax_imageio_1.0")) { format = IIOMetadataFormatImpl.getStandardFormatInstance(); } else { IIORegistry registry = IIORegistry.getDefaultInstance(); Iterator iter = registry.getServiceProviders(ImageReaderSpi.class, false); while (iter.hasNext()) { ImageReaderSpi spi = (ImageReaderSpi)iter.next(); if (args[0].equals (spi.getNativeStreamMetadataFormatName())) { System.out.print(spi.getDescription(null)); System.out.println(": native stream format"); format = spi.getStreamMetadataFormat(args[0]); break; } String[] extraStreamFormatNames = spi.getExtraStreamMetadataFormatNames(); if (extraStreamFormatNames != null && Arrays.asList(extraStreamFormatNames). contains(args[0])) { System.out.print(spi.getDescription(null)); System.out.println(": extra stream format"); format = spi.getStreamMetadataFormat(args[0]); break; } if (args[0].equals (spi.getNativeImageMetadataFormatName())) { System.out.print(spi.getDescription(null)); System.out.println(": native image format"); format = spi.getImageMetadataFormat(args[0]); break; } String[] extraImageFormatNames = spi.getExtraImageMetadataFormatNames(); if (extraImageFormatNames != null && Arrays.asList(extraImageFormatNames).contains(args[0])) { System.out.print(spi.getDescription(null)); System.out.println(": extra image format"); format = spi.getImageMetadataFormat(args[0]); break; } } } if (format == null) { System.err.println("Unknown format: " + args[0]); System.exit(0); } MetadataFormatPrinter printer = new MetadataFormatPrinter(System.out); printer.print(format); }
Example 14
Source File: MetadataFormatPrinter.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 4 votes |
public static void main(String[] args) { IIOMetadataFormat format = null; if (args.length == 0 || args[0].equals("javax_imageio_1.0")) { format = IIOMetadataFormatImpl.getStandardFormatInstance(); } else { IIORegistry registry = IIORegistry.getDefaultInstance(); Iterator iter = registry.getServiceProviders(ImageReaderSpi.class, false); while (iter.hasNext()) { ImageReaderSpi spi = (ImageReaderSpi)iter.next(); if (args[0].equals (spi.getNativeStreamMetadataFormatName())) { System.out.print(spi.getDescription(null)); System.out.println(": native stream format"); format = spi.getStreamMetadataFormat(args[0]); break; } String[] extraStreamFormatNames = spi.getExtraStreamMetadataFormatNames(); if (extraStreamFormatNames != null && Arrays.asList(extraStreamFormatNames). contains(args[0])) { System.out.print(spi.getDescription(null)); System.out.println(": extra stream format"); format = spi.getStreamMetadataFormat(args[0]); break; } if (args[0].equals (spi.getNativeImageMetadataFormatName())) { System.out.print(spi.getDescription(null)); System.out.println(": native image format"); format = spi.getImageMetadataFormat(args[0]); break; } String[] extraImageFormatNames = spi.getExtraImageMetadataFormatNames(); if (extraImageFormatNames != null && Arrays.asList(extraImageFormatNames).contains(args[0])) { System.out.print(spi.getDescription(null)); System.out.println(": extra image format"); format = spi.getImageMetadataFormat(args[0]); break; } } } if (format == null) { System.err.println("Unknown format: " + args[0]); System.exit(0); } MetadataFormatPrinter printer = new MetadataFormatPrinter(System.out); printer.print(format); }