> for (String name : ImageIO.getReaderFormatNames()) System.out.println(name);

Wunderbar!

Somehting like:

CLASS="import javax.imageio.ImageIO; public class CheckGeotoolsJava {
public static void main( String[] args ) { for (String name :
ImageIO.getReaderFormatNames()) System.out.println(name); } }"
echo $CLASS > CheckGeotoolsJava.java
javac CheckGeotoolsJava.java
echo "Your current java installation supports the following image formats:"
java CheckGeotoolsJava
rm CheckGeotoolsJava.java
rm CheckGeotoolsJava.class

Thanks,
Andrea







>
> Michael
>
> On 28 July 2011 16:39, andrea antonello <[email protected]> wrote:
>> Hi, I remember from ages ago I saw a nice one line code to get all the
>> supported jai formats.
>>
>> I would like to write "something" to make it possible for people to
>> test if their java installation with all the jai/imageio/imageio-ext
>> is complete.
>>
>> Something they just run, and it outputs something I am able to
>> understand in 1 second what they have and what they miss.
>>
>> If it is a one line code, I was even thinking to write a shell script
>> for linux and windows that copies the class intoa file, compiles it
>> and executes it.
>>
>> Ideas? Anyone knows that famous oneliner?
>>
>> Thanks,
>> Andrea
>>
>> ------------------------------------------------------------------------------
>> Got Input?   Slashdot Needs You.
>> Take our quick survey online.  Come on, we don't ask for help often.
>> Plus, you'll get a chance to win $100 to spend on ThinkGeek.
>> http://p.sf.net/sfu/slashdot-survey
>> _______________________________________________
>> Geotools-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/geotools-devel
>>
>

------------------------------------------------------------------------------
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to