com.sun.opengl.util

Class FileUtil


public class FileUtil
extends Object

Utilities for dealing with files.

Method Summary

static String
getFileSuffix(File file)
Returns the lowercase suffix of the given file name (the text after the last '.' in the file name).
static String
getFileSuffix(String filename)
Returns the lowercase suffix of the given file name (the text after the last '.' in the file name).

Method Details

getFileSuffix

public static String getFileSuffix(File file)
Returns the lowercase suffix of the given file name (the text after the last '.' in the file name). Returns null if the file name has no suffix. Only operates on the given file name; performs no I/O operations.
Parameters:
file - name of the file
Returns:
lowercase suffix of the file name

getFileSuffix

public static String getFileSuffix(String filename)
Returns the lowercase suffix of the given file name (the text after the last '.' in the file name). Returns null if the file name has no suffix. Only operates on the given file name; performs no I/O operations.
Parameters:
filename - name of the file
Returns:
lowercase suffix of the file name

Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.