com.vistech.util
Class ImageUtil
java.lang.Object
|
+--com.vistech.util.ImageUtil
- public class ImageUtil
- extends java.lang.Object
Method Summary |
static boolean |
compareFileNames(java.lang.String name,
java.lang.String[] filelist)
Filters file names. |
static boolean |
filterFileNames(java.lang.String name,
java.lang.String[] filter)
Filters file names. |
static boolean |
isImage(java.lang.String fl)
|
static java.awt.Image |
readImage(java.lang.String jarpath,
java.lang.String filename)
|
static java.awt.Image |
readImageFromJar(java.lang.String jarpath,
java.lang.String filename)
|
static java.awt.Image[] |
readImages(java.io.InputStream is)
Reads images from a jar file. |
static java.awt.Image[] |
readImages(java.util.jar.JarFile jarfile,
java.lang.String[] filelist)
|
static java.awt.Image[] |
readImages(java.lang.String jarpath)
Reads images from a jar file. |
static java.awt.Image[] |
readImages(java.lang.String jarpath,
java.lang.String[] filelist)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageUtil
public ImageUtil()
filterFileNames
public static boolean filterFileNames(java.lang.String name,
java.lang.String[] filter)
- Filters file names.
- Parameters:
name
- the file name.filter
- an array of file name extensions
isImage
public static boolean isImage(java.lang.String fl)
compareFileNames
public static boolean compareFileNames(java.lang.String name,
java.lang.String[] filelist)
- Filters file names.
- Parameters:
name
- the file name.filter
- an array of file name extensions
readImages
public static java.awt.Image[] readImages(java.lang.String jarpath)
- Reads images from a jar file.
- Parameters:
jarpath
- the complete path of the jar file including its name.- Returns:
- an array of images.
readImages
public static java.awt.Image[] readImages(java.io.InputStream is)
- Reads images from a jar file.
- Parameters:
jarpath
- the complete path of the jar file including its name.- Returns:
- an array of images.
readImages
public static java.awt.Image[] readImages(java.lang.String jarpath,
java.lang.String[] filelist)
readImage
public static java.awt.Image readImage(java.lang.String jarpath,
java.lang.String filename)
readImageFromJar
public static java.awt.Image readImageFromJar(java.lang.String jarpath,
java.lang.String filename)
readImages
public static java.awt.Image[] readImages(java.util.jar.JarFile jarfile,
java.lang.String[] filelist)