com.ucware.icontools
Class IconTools

java.lang.Object
  extended by com.ucware.icontools.IconTools

public class IconTools
extends java.lang.Object

A class containing static convenience methods for performing simple reading operations on Windows .ICO files.

Version:
1.1

Constructor Summary
IconTools()
           
 
Method Summary
static javax.swing.Icon[] readIcons(java.io.File in)
          Returns an array of Icons containing all of the Icons that have been read from the in.
static javax.swing.Icon[] readIcons(java.io.InputStream in)
          Returns an array of Icons containing all of the Icons that have been read from the in.
static javax.swing.Icon[] readIcons(RandomAccessData in)
          Returns an array of Icons containing all of the Icons that have been read from the in.
static javax.swing.Icon[] readIcons(java.net.URL in)
          Returns an array of Icons containing all of the Icons that have been read from the in.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IconTools

public IconTools()
Method Detail

readIcons

public static javax.swing.Icon[] readIcons(java.io.File in)
                                    throws java.io.IOException
Returns an array of Icons containing all of the Icons that have been read from the in.

Parameters:
in - a File to read from.
Returns:
Throws:
java.io.IOException

readIcons

public static javax.swing.Icon[] readIcons(RandomAccessData in)
                                    throws java.io.IOException
Returns an array of Icons containing all of the Icons that have been read from the in.

Parameters:
in - a RandomAccessData to read from.
Returns:
Throws:
java.io.IOException

readIcons

public static javax.swing.Icon[] readIcons(java.io.InputStream in)
                                    throws java.io.IOException
Returns an array of Icons containing all of the Icons that have been read from the in. This method reads all available data from the in into memory.

Parameters:
in - an InputStream to read from.
Returns:
Throws:
java.io.IOException

readIcons

public static javax.swing.Icon[] readIcons(java.net.URL in)
                                    throws java.io.IOException
Returns an array of Icons containing all of the Icons that have been read from the in. This method reads all available data from the in into memory.

Parameters:
in - an URL to read from.
Returns:
Throws:
java.io.IOException