| java.lang.Object de.anomic.tools.nxTools
nxTools | public class nxTools (Code) | | |
Method Summary | |
public static String | awk(String sentence, String separator, int count) | public static Vector<String> | grep(Vector<String> list, int afterContext, String pattern) | public static ArrayList<String> | grep(ArrayList<String> list, int afterContext, String pattern) | public static String | shortenURLString(String url, int len) | public static ArrayList<String> | strings(byte[] a) | public static ArrayList<String> | strings(byte[] a, String encoding) | public static HashMap<String, String> | table(Vector<String> list) | public static HashMap<String, String> | table(byte[] a, String encoding) | public static HashMap<String, String> | table(ArrayList<String> list) | public static String | tail1(Vector<String> list) | public static String | tail1(ArrayList<String> list) |
shortenURLString | public static String shortenURLString(String url, int len)(Code) | | This function shorten URL Strings
Example returns:
- normal domain:
- http://domain.net/leftpath..rightpath
- long domain:
- http://very_very_long_domain.net/le..
Parameters: String - like a URL the shorten or the old String |
|
|