| java.lang.Object net.jforum.util.URLNormalizer
URLNormalizer | public class URLNormalizer (Code) | | Normalizes an URL.
Normalization means replacing blank spaces by underlines,
changing special chars by its regular form and etc.
author: Rafael Steil version: $Id: URLNormalizer.java,v 1.4 2006/08/20 22:47:42 rafaelsteil Exp $ |
Field Summary | |
final public static int | LIMIT |
Method Summary | |
public static String | normalize(String url) Normalizes an URL. | public static String | normalize(String url, int limit, boolean friendlyTruncate) Parameters: url - the url to normalize Parameters: limit - do not process more than limit + 1 chars Parameters: friendlyTruncate - If true , will try to not cut a word ifmore than limit chars were processed. |
LIMIT | final public static int LIMIT(Code) | | |
normalize | public static String normalize(String url, int limit, boolean friendlyTruncate)(Code) | | Parameters: url - the url to normalize Parameters: limit - do not process more than limit + 1 chars Parameters: friendlyTruncate - If true , will try to not cut a word ifmore than limit chars were processed. It will stop in the nextspecial char the normalized url |
|
|