public class FileUtils
extends java.lang.Object
Constructor and Description |
---|
FileUtils() |
Modifier and Type | Method and Description |
---|---|
static javax.swing.Icon |
getIcon(java.io.File file)
Returns the native icon of the given file if one exists, otherwise
returns null.
|
static boolean |
isImage(java.lang.String fileName)
Returns
true if the file given by fileName is an
image, false - otherwise. |
public static boolean isImage(java.lang.String fileName)
true
if the file given by fileName is an
image, false - otherwise.fileName
- the name of the file to checktrue
if the file is an image, false -
otherwise.public static javax.swing.Icon getIcon(java.io.File file)
file
- the file to obtain icon for
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.