001 /* 002 * dumpcodecs 003 * 004 * Copyright (c) 2002, 2003 Marco Schmidt. 005 * All rights reserved. 006 */ 007 008 package net.sourceforge.jiu.apps; 009 010 import net.sourceforge.jiu.codecs.*; 011 012 /** 013 * Command line program that lists all codecs registered with ImageLoader. 014 * All program arguments are ignored. 015 * @author Marco Schmidt 016 * @since 0.10.0 017 */ 018 public class dumpcodecs 019 { 020 public static void main(String[] args) throws Exception 021 { 022 System.out.println("Codecs known to net.sourceforge.jiu.codecs.ImageLoader"); 023 for (int i = 0; i < ImageLoader.getNumCodecs(); i++) 024 { 025 ImageCodec codec = ImageLoader.createCodec(i); 026 System.out.println("(" + (i + 1) + ") " + 027 codec.getClass().getName() + " / " + 028 codec.getFormatName() + " / " + 029 "Saving supported=" + (codec.isSavingSupported() ? "yes" : "no")); 030 } 031 } 032 }