Package net.sf.robocode.util
Class UrlUtil
java.lang.Object
net.sf.robocode.util.UrlUtil
Utility class used for working on URLs.
- Author:
- Flemming N. Larsen (original)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
removeFileExtension
(String fileName) Removes a file extension from a string containing a file name, e.g.
-
Constructor Details
-
UrlUtil
public UrlUtil()
-
-
Method Details
-
removeFileExtension
Removes a file extension from a string containing a file name, e.g. the string "filename.ext" would become using this method "filename".- Parameters:
fileName
- is a string containing a file name with an extension to remove.- Returns:
- a new string where the file extension has been removed from the file name. If no extension is found, the input file name is returned.
-