/usr/share/doc/libplexus-utils-java/api/org/codehaus/plexus/util/StringUtils.html is in libplexus-utils-java-doc 1:1.5.15-4+deb9u1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html>
<head>
<title>StringUtils (plexus-utils API)</title>
<meta name="date" content="2018-03-19">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="StringUtils (plexus-utils API)";
}
}
catch(err) {
}
//-->
var methods = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9,"i12":9,"i13":9,"i14":9,"i15":9,"i16":9,"i17":9,"i18":9,"i19":9,"i20":9,"i21":9,"i22":9,"i23":9,"i24":9,"i25":9,"i26":9,"i27":9,"i28":9,"i29":9,"i30":9,"i31":9,"i32":9,"i33":9,"i34":9,"i35":9,"i36":9,"i37":9,"i38":9,"i39":9,"i40":9,"i41":9,"i42":9,"i43":9,"i44":9,"i45":9,"i46":9,"i47":9,"i48":9,"i49":9,"i50":9,"i51":9,"i52":9,"i53":9,"i54":9,"i55":9,"i56":9,"i57":9,"i58":9,"i59":9,"i60":9,"i61":9,"i62":9,"i63":9,"i64":9,"i65":9,"i66":9,"i67":9,"i68":9,"i69":9,"i70":9,"i71":9,"i72":9,"i73":9,"i74":9,"i75":9,"i76":9,"i77":9,"i78":9,"i79":9,"i80":9,"i81":9,"i82":9,"i83":9,"i84":9,"i85":9,"i86":9,"i87":9,"i88":9,"i89":9,"i90":9,"i91":9};
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/codehaus/plexus/util/StringOutputStream.html" title="class in org.codehaus.plexus.util"><span class="typeNameLink">Prev Class</span></a></li>
<li><a href="../../../../org/codehaus/plexus/util/SweeperPool.html" title="class in org.codehaus.plexus.util"><span class="typeNameLink">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/codehaus/plexus/util/StringUtils.html" target="_top">Frames</a></li>
<li><a href="StringUtils.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li>Field | </li>
<li><a href="#constructor.summary">Constr</a> | </li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li><a href="#constructor.detail">Constr</a> | </li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.codehaus.plexus.util</div>
<h2 title="Class StringUtils" class="title">Class StringUtils</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>org.codehaus.plexus.util.StringUtils</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public class <span class="typeNameLabel">StringUtils</span>
extends java.lang.Object</pre>
<div class="block"><p>Common <code>String</code> manipulation routines.</p>
<p>Originally from
<a href="http://jakarta.apache.org/turbine/">Turbine</a> and the
GenerationJavaCore library.</p></div>
<dl>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>1.0</dd>
<dt><span class="simpleTagLabel">Version:</span></dt>
<dd>$Id: StringUtils.java 8001 2009-01-03 13:17:09Z vsiveton $</dd>
<dt><span class="simpleTagLabel">Author:</span></dt>
<dd><a href="mailto:jon@latchkey.com">Jon S. Stevens</a>, <a href="mailto:dlr@finemaltcoding.com">Daniel Rall</a>, <a href="mailto:gcoladonato@yahoo.com">Greg Coladonato</a>, <a href="mailto:bayard@generationjava.com">Henri Yandell</a>, <a href="mailto:ed@codehaus.org">Ed Korthof</a>, <a href="mailto:rand_mcneely@yahoo.com">Rand McNeely</a>, Stephen Colebourne, <a href="mailto:fredrik@westermarck.com">Fredrik Westermarck</a>, Holger Krauth, <a href="mailto:alex@purpletech.com">Alexander Day Chaffee</a>, <a href="mailto:vincent.siveton@gmail.com">Vincent Siveton</a></dd>
</dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#StringUtils--">StringUtils</a></span>()</code>
<div class="block"><code>StringUtils</code> instances should NOT be constructed in
standard programming.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#abbreviate-java.lang.String-int-">abbreviate</a></span>(java.lang.String s,
int maxWidth)</code>
<div class="block">Turn "Now is the time for all good men" into "Now is the time for..."</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#abbreviate-java.lang.String-int-int-">abbreviate</a></span>(java.lang.String s,
int offset,
int maxWidth)</code>
<div class="block">Turn "Now is the time for all good men" into "...is the time for..."</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#addAndDeHump-java.lang.String-">addAndDeHump</a></span>(java.lang.String view)</code> </td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#capitalise-java.lang.String-">capitalise</a></span>(java.lang.String str)</code>
<div class="block">Capitalise a String.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#capitaliseAllWords-java.lang.String-">capitaliseAllWords</a></span>(java.lang.String str)</code>
<div class="block">Capitalise all the words in a String.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#capitalizeFirstLetter-java.lang.String-">capitalizeFirstLetter</a></span>(java.lang.String data)</code> </td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#center-java.lang.String-int-">center</a></span>(java.lang.String str,
int size)</code>
<div class="block">Center a String in a larger String of size <code>n</code>.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#center-java.lang.String-int-java.lang.String-">center</a></span>(java.lang.String str,
int size,
java.lang.String delim)</code>
<div class="block">Center a String in a larger String of size <code>n</code>.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#chomp-java.lang.String-">chomp</a></span>(java.lang.String str)</code>
<div class="block">Remove the last newline, and everything after it from a String.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#chomp-java.lang.String-java.lang.String-">chomp</a></span>(java.lang.String str,
java.lang.String sep)</code>
<div class="block">Remove the last value of a supplied String, and everything after
it from a String.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#chompLast-java.lang.String-">chompLast</a></span>(java.lang.String str)</code>
<div class="block">Remove a newline if and only if it is at the end
of the supplied String.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#chompLast-java.lang.String-java.lang.String-">chompLast</a></span>(java.lang.String str,
java.lang.String sep)</code>
<div class="block">Remove a value if and only if the String ends with that value.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#chop-java.lang.String-">chop</a></span>(java.lang.String str)</code>
<div class="block">Remove the last character from a String.</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#chopNewline-java.lang.String-">chopNewline</a></span>(java.lang.String str)</code>
<div class="block">Remove <code>\n</code> from end of a String if it's there.</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#clean-java.lang.String-">clean</a></span>(java.lang.String str)</code>
<div class="block">Removes control characters, including whitespace, from both
ends of this String, handling <code>null</code> by returning
an empty String.</div>
</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#concatenate-java.lang.Object:A-">concatenate</a></span>(java.lang.Object[] array)</code>
<div class="block">Concatenates elements of an array into a single String.</div>
</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#contains-java.lang.String-char-">contains</a></span>(java.lang.String str,
char searchChar)</code>
<div class="block">Checks if String contains a search character, handling <code>null</code>.</div>
</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#contains-java.lang.String-java.lang.String-">contains</a></span>(java.lang.String str,
java.lang.String searchStr)</code>
<div class="block">Checks if String contains a search String, handling <code>null</code>.</div>
</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#countMatches-java.lang.String-java.lang.String-">countMatches</a></span>(java.lang.String str,
java.lang.String sub)</code>
<div class="block">How many times is the substring in the larger String.</div>
</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#defaultString-java.lang.Object-">defaultString</a></span>(java.lang.Object obj)</code>
<div class="block">Returns either the passed in <code>Object</code> as a String,
or, if the <code>Object</code> is <code>null</code>, an empty
String.</div>
</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#defaultString-java.lang.Object-java.lang.String-">defaultString</a></span>(java.lang.Object obj,
java.lang.String defaultString)</code>
<div class="block">Returns either the passed in <code>Object</code> as a String,
or, if the <code>Object</code> is <code>null</code>, a passed
in default String.</div>
</td>
</tr>
<tr id="i21" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#deleteWhitespace-java.lang.String-">deleteWhitespace</a></span>(java.lang.String str)</code>
<div class="block">Deletes all whitespaces from a String.</div>
</td>
</tr>
<tr id="i22" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#difference-java.lang.String-java.lang.String-">difference</a></span>(java.lang.String s1,
java.lang.String s2)</code>
<div class="block">Compare two strings, and return the portion where they differ.</div>
</td>
</tr>
<tr id="i23" class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#differenceAt-java.lang.String-java.lang.String-">differenceAt</a></span>(java.lang.String s1,
java.lang.String s2)</code>
<div class="block">Compare two strings, and return the index at which the strings begin to differ.</div>
</td>
</tr>
<tr id="i24" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#equals-java.lang.String-java.lang.String-">equals</a></span>(java.lang.String str1,
java.lang.String str2)</code>
<div class="block">Compares two Strings, returning <code>true</code> if they are equal.</div>
</td>
</tr>
<tr id="i25" class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#equalsIgnoreCase-java.lang.String-java.lang.String-">equalsIgnoreCase</a></span>(java.lang.String str1,
java.lang.String str2)</code>
<div class="block">Compares two Strings, returning <code>true</code> if they are equal ignoring
the case.</div>
</td>
</tr>
<tr id="i26" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#escape-java.lang.String-">escape</a></span>(java.lang.String str)</code>
<div class="block">Escapes any values it finds into their String form.</div>
</td>
</tr>
<tr id="i27" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#escape-java.lang.String-char:A-char-">escape</a></span>(java.lang.String source,
char[] escapedChars,
char escapeChar)</code> </td>
</tr>
<tr id="i28" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#getChomp-java.lang.String-java.lang.String-">getChomp</a></span>(java.lang.String str,
java.lang.String sep)</code>
<div class="block">Remove everything and return the last value of a supplied String, and
everything after it from a String.</div>
</td>
</tr>
<tr id="i29" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#getNestedString-java.lang.String-java.lang.String-">getNestedString</a></span>(java.lang.String str,
java.lang.String tag)</code>
<div class="block">Get the String that is nested in between two instances of the
same String.</div>
</td>
</tr>
<tr id="i30" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#getNestedString-java.lang.String-java.lang.String-java.lang.String-">getNestedString</a></span>(java.lang.String str,
java.lang.String open,
java.lang.String close)</code>
<div class="block">Get the String that is nested in between two Strings.</div>
</td>
</tr>
<tr id="i31" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#getPrechomp-java.lang.String-java.lang.String-">getPrechomp</a></span>(java.lang.String str,
java.lang.String sep)</code>
<div class="block">Remove and return everything before the first value of a
supplied String from another String.</div>
</td>
</tr>
<tr id="i32" class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#indexOfAny-java.lang.String-java.lang.String:A-">indexOfAny</a></span>(java.lang.String str,
java.lang.String[] searchStrs)</code>
<div class="block">Find the first index of any of a set of potential substrings.</div>
</td>
</tr>
<tr id="i33" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#interpolate-java.lang.String-java.util.Map-">interpolate</a></span>(java.lang.String text,
java.util.Map namespace)</code> </td>
</tr>
<tr id="i34" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#isAlpha-java.lang.String-">isAlpha</a></span>(java.lang.String str)</code>
<div class="block">Checks if the String contains only unicode letters.</div>
</td>
</tr>
<tr id="i35" class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#isAlphanumeric-java.lang.String-">isAlphanumeric</a></span>(java.lang.String str)</code>
<div class="block">Checks if the String contains only unicode letters or digits.</div>
</td>
</tr>
<tr id="i36" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#isAlphanumericSpace-java.lang.String-">isAlphanumericSpace</a></span>(java.lang.String str)</code>
<div class="block">Checks if the String contains only unicode letters, digits
or space (<code>' '</code>).</div>
</td>
</tr>
<tr id="i37" class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#isAlphaSpace-java.lang.String-">isAlphaSpace</a></span>(java.lang.String str)</code>
<div class="block">Checks if the String contains only unicode letters and
space (<code>' '</code>).</div>
</td>
</tr>
<tr id="i38" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#isBlank-java.lang.String-">isBlank</a></span>(java.lang.String str)</code>
<div class="block">
Checks if a String is whitespace, empty ("") or null.</div>
</td>
</tr>
<tr id="i39" class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#isEmpty-java.lang.String-">isEmpty</a></span>(java.lang.String str)</code>
<div class="block">Checks if a (trimmed) String is <code>null</code> or empty.</div>
</td>
</tr>
<tr id="i40" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#isNotBlank-java.lang.String-">isNotBlank</a></span>(java.lang.String str)</code>
<div class="block">
Checks if a String is not empty (""), not null and not whitespace only.</div>
</td>
</tr>
<tr id="i41" class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#isNotEmpty-java.lang.String-">isNotEmpty</a></span>(java.lang.String str)</code>
<div class="block">Checks if a String is non <code>null</code> and is
not empty (<code>length > 0</code>).</div>
</td>
</tr>
<tr id="i42" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#isNumeric-java.lang.String-">isNumeric</a></span>(java.lang.String str)</code>
<div class="block">Checks if the String contains only unicode digits.</div>
</td>
</tr>
<tr id="i43" class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#isNumericSpace-java.lang.String-">isNumericSpace</a></span>(java.lang.String str)</code>
<div class="block">Checks if the String contains only unicode digits or space
(<code>' '</code>).</div>
</td>
</tr>
<tr id="i44" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#isWhitespace-java.lang.String-">isWhitespace</a></span>(java.lang.String str)</code>
<div class="block">Checks if the String contains only whitespace.</div>
</td>
</tr>
<tr id="i45" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#join-java.util.Iterator-java.lang.String-">join</a></span>(java.util.Iterator iterator,
java.lang.String separator)</code>
<div class="block">Joins the elements of the provided <code>Iterator</code> into
a single String containing the provided elements.</div>
</td>
</tr>
<tr id="i46" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#join-java.lang.Object:A-java.lang.String-">join</a></span>(java.lang.Object[] array,
java.lang.String separator)</code>
<div class="block">Joins the elements of the provided array into a single String
containing the provided list of elements.</div>
</td>
</tr>
<tr id="i47" class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#lastIndexOfAny-java.lang.String-java.lang.String:A-">lastIndexOfAny</a></span>(java.lang.String str,
java.lang.String[] searchStrs)</code>
<div class="block">Find the latest index of any of a set of potential substrings.</div>
</td>
</tr>
<tr id="i48" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#left-java.lang.String-int-">left</a></span>(java.lang.String str,
int len)</code>
<div class="block">Gets the leftmost <code>n</code> characters of a String.</div>
</td>
</tr>
<tr id="i49" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#leftPad-java.lang.String-int-">leftPad</a></span>(java.lang.String str,
int size)</code>
<div class="block">Left pad a String with spaces.</div>
</td>
</tr>
<tr id="i50" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#leftPad-java.lang.String-int-java.lang.String-">leftPad</a></span>(java.lang.String str,
int size,
java.lang.String delim)</code>
<div class="block">Left pad a String with a specified string.</div>
</td>
</tr>
<tr id="i51" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#lowerCase-java.lang.String-">lowerCase</a></span>(java.lang.String str)</code>
<div class="block">Convert a String to lower case, <code>null</code> String
returns <code>null</code>.</div>
</td>
</tr>
<tr id="i52" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#lowercaseFirstLetter-java.lang.String-">lowercaseFirstLetter</a></span>(java.lang.String data)</code> </td>
</tr>
<tr id="i53" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#mid-java.lang.String-int-int-">mid</a></span>(java.lang.String str,
int pos,
int len)</code>
<div class="block">Gets <code>n</code> characters from the middle of a String.</div>
</td>
</tr>
<tr id="i54" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#overlayString-java.lang.String-java.lang.String-int-int-">overlayString</a></span>(java.lang.String text,
java.lang.String overlay,
int start,
int end)</code>
<div class="block">Overlay a part of a String with another String.</div>
</td>
</tr>
<tr id="i55" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#prechomp-java.lang.String-java.lang.String-">prechomp</a></span>(java.lang.String str,
java.lang.String sep)</code>
<div class="block">Remove the first value of a supplied String, and everything before it
from a String.</div>
</td>
</tr>
<tr id="i56" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#quoteAndEscape-java.lang.String-char-">quoteAndEscape</a></span>(java.lang.String source,
char quoteChar)</code>
<div class="block">Quote and escape a String with the given character, handling <code>null</code>.</div>
</td>
</tr>
<tr id="i57" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#quoteAndEscape-java.lang.String-char-char:A-">quoteAndEscape</a></span>(java.lang.String source,
char quoteChar,
char[] quotingTriggers)</code>
<div class="block">Quote and escape a String with the given character, handling <code>null</code>.</div>
</td>
</tr>
<tr id="i58" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#quoteAndEscape-java.lang.String-char-char:A-char:A-char-boolean-">quoteAndEscape</a></span>(java.lang.String source,
char quoteChar,
char[] escapedChars,
char[] quotingTriggers,
char escapeChar,
boolean force)</code> </td>
</tr>
<tr id="i59" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#quoteAndEscape-java.lang.String-char-char:A-char-boolean-">quoteAndEscape</a></span>(java.lang.String source,
char quoteChar,
char[] escapedChars,
char escapeChar,
boolean force)</code> </td>
</tr>
<tr id="i60" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#removeAndHump-java.lang.String-java.lang.String-">removeAndHump</a></span>(java.lang.String data,
java.lang.String replaceThis)</code> </td>
</tr>
<tr id="i61" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#removeDuplicateWhitespace-java.lang.String-">removeDuplicateWhitespace</a></span>(java.lang.String s)</code>
<div class="block">Remove all duplicate whitespace characters and line terminators are replaced with a single
space.</div>
</td>
</tr>
<tr id="i62" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#repeat-java.lang.String-int-">repeat</a></span>(java.lang.String str,
int repeat)</code>
<div class="block">Repeat a String <code>n</code> times to form a
new string.</div>
</td>
</tr>
<tr id="i63" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#replace-java.lang.String-char-char-">replace</a></span>(java.lang.String text,
char repl,
char with)</code>
<div class="block">Replace all occurances of a char within another char.</div>
</td>
</tr>
<tr id="i64" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#replace-java.lang.String-char-char-int-">replace</a></span>(java.lang.String text,
char repl,
char with,
int max)</code>
<div class="block">Replace a char with another char inside a larger String,
for the first <code>max</code> values of the search char.</div>
</td>
</tr>
<tr id="i65" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#replace-java.lang.String-java.lang.String-java.lang.String-">replace</a></span>(java.lang.String text,
java.lang.String repl,
java.lang.String with)</code>
<div class="block">Replace all occurances of a String within another String.</div>
</td>
</tr>
<tr id="i66" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#replace-java.lang.String-java.lang.String-java.lang.String-int-">replace</a></span>(java.lang.String text,
java.lang.String repl,
java.lang.String with,
int max)</code>
<div class="block">Replace a String with another String inside a larger String,
for the first <code>max</code> values of the search String.</div>
</td>
</tr>
<tr id="i67" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#replaceOnce-java.lang.String-char-char-">replaceOnce</a></span>(java.lang.String text,
char repl,
char with)</code>
<div class="block">Replace a char with another char inside a larger String, once.</div>
</td>
</tr>
<tr id="i68" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#replaceOnce-java.lang.String-java.lang.String-java.lang.String-">replaceOnce</a></span>(java.lang.String text,
java.lang.String repl,
java.lang.String with)</code>
<div class="block">Replace a String with another String inside a larger String, once.</div>
</td>
</tr>
<tr id="i69" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#reverse-java.lang.String-">reverse</a></span>(java.lang.String str)</code>
<div class="block">Reverse a String.</div>
</td>
</tr>
<tr id="i70" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#reverseDelimitedString-java.lang.String-java.lang.String-">reverseDelimitedString</a></span>(java.lang.String str,
java.lang.String delimiter)</code>
<div class="block">Reverses a String that is delimited by a specific character.</div>
</td>
</tr>
<tr id="i71" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#right-java.lang.String-int-">right</a></span>(java.lang.String str,
int len)</code>
<div class="block">Gets the rightmost <code>n</code> characters of a String.</div>
</td>
</tr>
<tr id="i72" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#rightPad-java.lang.String-int-">rightPad</a></span>(java.lang.String str,
int size)</code>
<div class="block">Right pad a String with spaces.</div>
</td>
</tr>
<tr id="i73" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#rightPad-java.lang.String-int-java.lang.String-">rightPad</a></span>(java.lang.String str,
int size,
java.lang.String delim)</code>
<div class="block">Right pad a String with a specified string.</div>
</td>
</tr>
<tr id="i74" class="altColor">
<td class="colFirst"><code>static java.lang.String[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#split-java.lang.String-">split</a></span>(java.lang.String str)</code>
<div class="block">Splits the provided text into a array, using whitespace as the
separator.</div>
</td>
</tr>
<tr id="i75" class="rowColor">
<td class="colFirst"><code>static java.lang.String[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#split-java.lang.String-java.lang.String-">split</a></span>(java.lang.String text,
java.lang.String separator)</code> </td>
</tr>
<tr id="i76" class="altColor">
<td class="colFirst"><code>static java.lang.String[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#split-java.lang.String-java.lang.String-int-">split</a></span>(java.lang.String str,
java.lang.String separator,
int max)</code>
<div class="block">Splits the provided text into a array, based on a given separator.</div>
</td>
</tr>
<tr id="i77" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#strip-java.lang.String-">strip</a></span>(java.lang.String str)</code>
<div class="block">Remove whitespace from the front and back of a String.</div>
</td>
</tr>
<tr id="i78" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#strip-java.lang.String-java.lang.String-">strip</a></span>(java.lang.String str,
java.lang.String delim)</code>
<div class="block">Remove a specified String from the front and back of a
String.</div>
</td>
</tr>
<tr id="i79" class="rowColor">
<td class="colFirst"><code>static java.lang.String[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#stripAll-java.lang.String:A-">stripAll</a></span>(java.lang.String[] strs)</code>
<div class="block">Strip whitespace from the front and back of every String
in the array.</div>
</td>
</tr>
<tr id="i80" class="altColor">
<td class="colFirst"><code>static java.lang.String[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#stripAll-java.lang.String:A-java.lang.String-">stripAll</a></span>(java.lang.String[] strs,
java.lang.String delimiter)</code>
<div class="block">Strip the specified delimiter from the front and back of
every String in the array.</div>
</td>
</tr>
<tr id="i81" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#stripEnd-java.lang.String-java.lang.String-">stripEnd</a></span>(java.lang.String str,
java.lang.String strip)</code>
<div class="block">Strip any of a supplied String from the end of a String.</div>
</td>
</tr>
<tr id="i82" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#stripStart-java.lang.String-java.lang.String-">stripStart</a></span>(java.lang.String str,
java.lang.String strip)</code>
<div class="block">Strip any of a supplied String from the start of a String.</div>
</td>
</tr>
<tr id="i83" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#substring-java.lang.String-int-">substring</a></span>(java.lang.String str,
int start)</code>
<div class="block">Gets a substring from the specified string avoiding exceptions.</div>
</td>
</tr>
<tr id="i84" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#substring-java.lang.String-int-int-">substring</a></span>(java.lang.String str,
int start,
int end)</code>
<div class="block">Gets a substring from the specified String avoiding exceptions.</div>
</td>
</tr>
<tr id="i85" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#swapCase-java.lang.String-">swapCase</a></span>(java.lang.String str)</code>
<div class="block">Swaps the case of String.</div>
</td>
</tr>
<tr id="i86" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#trim-java.lang.String-">trim</a></span>(java.lang.String str)</code>
<div class="block">Removes control characters, including whitespace, from both
ends of this String, handling <code>null</code> by returning
<code>null</code>.</div>
</td>
</tr>
<tr id="i87" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#uncapitalise-java.lang.String-">uncapitalise</a></span>(java.lang.String str)</code>
<div class="block">Uncapitalise a String.</div>
</td>
</tr>
<tr id="i88" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#uncapitaliseAllWords-java.lang.String-">uncapitaliseAllWords</a></span>(java.lang.String str)</code>
<div class="block">Uncapitalise all the words in a string.</div>
</td>
</tr>
<tr id="i89" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#unifyLineSeparators-java.lang.String-">unifyLineSeparators</a></span>(java.lang.String s)</code>
<div class="block">Parses the given String and replaces all occurrences of
'\n', '\r' and '\r\n' with the system line separator.</div>
</td>
</tr>
<tr id="i90" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#unifyLineSeparators-java.lang.String-java.lang.String-">unifyLineSeparators</a></span>(java.lang.String s,
java.lang.String ls)</code>
<div class="block">Parses the given String and replaces all occurrences of
'\n', '\r' and '\r\n' with the system line separator.</div>
</td>
</tr>
<tr id="i91" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/codehaus/plexus/util/StringUtils.html#upperCase-java.lang.String-">upperCase</a></span>(java.lang.String str)</code>
<div class="block">Convert a String to upper case, <code>null</code> String
returns <code>null</code>.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="StringUtils--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>StringUtils</h4>
<pre>public StringUtils()</pre>
<div class="block"><p><code>StringUtils</code> instances should NOT be constructed in
standard programming. Instead, the class should be used as
<code>StringUtils.trim(" foo ");</code>.</p>
<p>This constructor is public to permit tools that require a JavaBean
manager to operate.</p></div>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="clean-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>clean</h4>
<pre>public static java.lang.String clean(java.lang.String str)</pre>
<div class="block"><p>Removes control characters, including whitespace, from both
ends of this String, handling <code>null</code> by returning
an empty String.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - the String to check</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the trimmed text (never <code>null</code>)</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><code>String.trim()</code></dd>
</dl>
</li>
</ul>
<a name="trim-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>trim</h4>
<pre>public static java.lang.String trim(java.lang.String str)</pre>
<div class="block"><p>Removes control characters, including whitespace, from both
ends of this String, handling <code>null</code> by returning
<code>null</code>.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - the String to check</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the trimmed text (or <code>null</code>)</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><code>String.trim()</code></dd>
</dl>
</li>
</ul>
<a name="deleteWhitespace-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>deleteWhitespace</h4>
<pre>public static java.lang.String deleteWhitespace(java.lang.String str)</pre>
<div class="block"><p>Deletes all whitespaces from a String.</p>
<p>Whitespace is defined by
<code>Character.isWhitespace(char)</code>.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - String target to delete whitespace from</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the String without whitespaces</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code></dd>
</dl>
</li>
</ul>
<a name="isNotEmpty-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isNotEmpty</h4>
<pre>public static boolean isNotEmpty(java.lang.String str)</pre>
<div class="block"><p>Checks if a String is non <code>null</code> and is
not empty (<code>length > 0</code>).</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - the String to check</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if the String is non-null, and not length zero</dd>
</dl>
</li>
</ul>
<a name="isEmpty-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isEmpty</h4>
<pre>public static boolean isEmpty(java.lang.String str)</pre>
<div class="block"><p>Checks if a (trimmed) String is <code>null</code> or empty.</p>
<p><strong>Note:</strong> In future releases, this method will no longer trim the input string such that it works
complementary to <a href="../../../../org/codehaus/plexus/util/StringUtils.html#isNotEmpty-java.lang.String-"><code>isNotEmpty(String)</code></a>. Code that wants to test for whitespace-only strings should be
migrated to use <a href="../../../../org/codehaus/plexus/util/StringUtils.html#isBlank-java.lang.String-"><code>isBlank(String)</code></a> instead.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - the String to check</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><code>true</code> if the String is <code>null</code>, or
length zero once trimmed</dd>
</dl>
</li>
</ul>
<a name="isBlank-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isBlank</h4>
<pre>public static boolean isBlank(java.lang.String str)</pre>
<div class="block"><p>
Checks if a String is whitespace, empty ("") or null.
</p>
<pre>
StringUtils.isBlank(null) = true
StringUtils.isBlank("") = true
StringUtils.isBlank(" ") = true
StringUtils.isBlank("bob") = false
StringUtils.isBlank(" bob ") = false
</pre></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - the String to check, may be null</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><code>true</code> if the String is null, empty or whitespace</dd>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>1.5.2</dd>
</dl>
</li>
</ul>
<a name="isNotBlank-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isNotBlank</h4>
<pre>public static boolean isNotBlank(java.lang.String str)</pre>
<div class="block"><p>
Checks if a String is not empty (""), not null and not whitespace only.
</p>
<pre>
StringUtils.isNotBlank(null) = false
StringUtils.isNotBlank("") = false
StringUtils.isNotBlank(" ") = false
StringUtils.isNotBlank("bob") = true
StringUtils.isNotBlank(" bob ") = true
</pre></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - the String to check, may be null</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><code>true</code> if the String is not empty and not null and not whitespace</dd>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>1.5.2</dd>
</dl>
</li>
</ul>
<a name="equals-java.lang.String-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>equals</h4>
<pre>public static boolean equals(java.lang.String str1,
java.lang.String str2)</pre>
<div class="block"><p>Compares two Strings, returning <code>true</code> if they are equal.</p>
<p><code>null</code>s are handled without exceptions. Two <code>null</code>
references are considered to be equal. The comparison is case sensitive.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str1</code> - the first string</dd>
<dd><code>str2</code> - the second string</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><code>true</code> if the Strings are equal, case sensitive, or
both <code>null</code></dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><code>String.equals(Object)</code></dd>
</dl>
</li>
</ul>
<a name="equalsIgnoreCase-java.lang.String-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>equalsIgnoreCase</h4>
<pre>public static boolean equalsIgnoreCase(java.lang.String str1,
java.lang.String str2)</pre>
<div class="block"><p>Compares two Strings, returning <code>true</code> if they are equal ignoring
the case.</p>
<p><code>Nulls</code> are handled without exceptions. Two <code>null</code>
references are considered equal. Comparison is case insensitive.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str1</code> - the first string</dd>
<dd><code>str2</code> - the second string</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><code>true</code> if the Strings are equal, case insensitive, or
both <code>null</code></dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><code>String.equalsIgnoreCase(String)</code></dd>
</dl>
</li>
</ul>
<a name="indexOfAny-java.lang.String-java.lang.String:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>indexOfAny</h4>
<pre>public static int indexOfAny(java.lang.String str,
java.lang.String[] searchStrs)</pre>
<div class="block"><p>Find the first index of any of a set of potential substrings.</p>
<p><code>null</code> String will return <code>-1</code>.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - the String to check</dd>
<dd><code>searchStrs</code> - the Strings to search for</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the first index of any of the searchStrs in str</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - if any of searchStrs[i] is <code>null</code></dd>
</dl>
</li>
</ul>
<a name="lastIndexOfAny-java.lang.String-java.lang.String:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>lastIndexOfAny</h4>
<pre>public static int lastIndexOfAny(java.lang.String str,
java.lang.String[] searchStrs)</pre>
<div class="block"><p>Find the latest index of any of a set of potential substrings.</p>
<p><code>null</code> string will return <code>-1</code>.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - the String to check</dd>
<dd><code>searchStrs</code> - the Strings to search for</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the last index of any of the Strings</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - if any of searchStrs[i] is <code>null</code></dd>
</dl>
</li>
</ul>
<a name="substring-java.lang.String-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>substring</h4>
<pre>public static java.lang.String substring(java.lang.String str,
int start)</pre>
<div class="block"><p>Gets a substring from the specified string avoiding exceptions.</p>
<p>A negative start position can be used to start <code>n</code>
characters from the end of the String.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - the String to get the substring from</dd>
<dd><code>start</code> - the position to start from, negative means
count back from the end of the String by this many characters</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>substring from start position</dd>
</dl>
</li>
</ul>
<a name="substring-java.lang.String-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>substring</h4>
<pre>public static java.lang.String substring(java.lang.String str,
int start,
int end)</pre>
<div class="block"><p>Gets a substring from the specified String avoiding exceptions.</p>
<p>A negative start position can be used to start/end <code>n</code>
characters from the end of the String.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - the String to get the substring from</dd>
<dd><code>start</code> - the position to start from, negative means
count back from the end of the string by this many characters</dd>
<dd><code>end</code> - the position to end at (exclusive), negative means
count back from the end of the String by this many characters</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>substring from start position to end positon</dd>
</dl>
</li>
</ul>
<a name="left-java.lang.String-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>left</h4>
<pre>public static java.lang.String left(java.lang.String str,
int len)</pre>
<div class="block"><p>Gets the leftmost <code>n</code> characters of a String.</p>
<p>If <code>n</code> characters are not available, or the
String is <code>null</code>, the String will be returned without
an exception.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - the String to get the leftmost characters from</dd>
<dd><code>len</code> - the length of the required String</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the leftmost characters</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - if len is less than zero</dd>
</dl>
</li>
</ul>
<a name="right-java.lang.String-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>right</h4>
<pre>public static java.lang.String right(java.lang.String str,
int len)</pre>
<div class="block"><p>Gets the rightmost <code>n</code> characters of a String.</p>
<p>If <code>n</code> characters are not available, or the String
is <code>null</code>, the String will be returned without an
exception.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - the String to get the rightmost characters from</dd>
<dd><code>len</code> - the length of the required String</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the leftmost characters</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - if len is less than zero</dd>
</dl>
</li>
</ul>
<a name="mid-java.lang.String-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mid</h4>
<pre>public static java.lang.String mid(java.lang.String str,
int pos,
int len)</pre>
<div class="block"><p>Gets <code>n</code> characters from the middle of a String.</p>
<p>If <code>n</code> characters are not available, the remainder
of the String will be returned without an exception. If the
String is <code>null</code>, <code>null</code> will be returned.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - the String to get the characters from</dd>
<dd><code>pos</code> - the position to start from</dd>
<dd><code>len</code> - the length of the required String</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the leftmost characters</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.IndexOutOfBoundsException</code> - if pos is out of bounds</dd>
<dd><code>java.lang.IllegalArgumentException</code> - if len is less than zero</dd>
</dl>
</li>
</ul>
<a name="split-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>split</h4>
<pre>public static java.lang.String[] split(java.lang.String str)</pre>
<div class="block"><p>Splits the provided text into a array, using whitespace as the
separator.</p>
<p>The separator is not included in the returned String array.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - the String to parse</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>an array of parsed Strings</dd>
</dl>
</li>
</ul>
<a name="split-java.lang.String-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>split</h4>
<pre>public static java.lang.String[] split(java.lang.String text,
java.lang.String separator)</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../org/codehaus/plexus/util/StringUtils.html#split-java.lang.String-java.lang.String-int-"><code>split(String, String, int)</code></a></dd>
</dl>
</li>
</ul>
<a name="split-java.lang.String-java.lang.String-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>split</h4>
<pre>public static java.lang.String[] split(java.lang.String str,
java.lang.String separator,
int max)</pre>
<div class="block"><p>Splits the provided text into a array, based on a given separator.</p>
<p>The separator is not included in the returned String array. The
maximum number of splits to perfom can be controlled. A <code>null</code>
separator will cause parsing to be on whitespace.</p>
<p>This is useful for quickly splitting a String directly into
an array of tokens, instead of an enumeration of tokens (as
<code>StringTokenizer</code> does).</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - The string to parse.</dd>
<dd><code>separator</code> - Characters used as the delimiters. If
<code>null</code>, splits on whitespace.</dd>
<dd><code>max</code> - The maximum number of elements to include in the
array. A zero or negative value implies no limit.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>an array of parsed Strings</dd>
</dl>
</li>
</ul>
<a name="concatenate-java.lang.Object:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>concatenate</h4>
<pre>public static java.lang.String concatenate(java.lang.Object[] array)</pre>
<div class="block"><p>Concatenates elements of an array into a single String.</p>
<p>The difference from join is that concatenate has no delimiter.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>array</code> - the array of values to concatenate.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the concatenated string.</dd>
</dl>
</li>
</ul>
<a name="join-java.lang.Object:A-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>join</h4>
<pre>public static java.lang.String join(java.lang.Object[] array,
java.lang.String separator)</pre>
<div class="block"><p>Joins the elements of the provided array into a single String
containing the provided list of elements.</p>
<p>No delimiter is added before or after the list. A
<code>null</code> separator is the same as a blank String.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>array</code> - the array of values to join together</dd>
<dd><code>separator</code> - the separator character to use</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the joined String</dd>
</dl>
</li>
</ul>
<a name="join-java.util.Iterator-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>join</h4>
<pre>public static java.lang.String join(java.util.Iterator iterator,
java.lang.String separator)</pre>
<div class="block"><p>Joins the elements of the provided <code>Iterator</code> into
a single String containing the provided elements.</p>
<p>No delimiter is added before or after the list. A
<code>null</code> separator is the same as a blank String.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>iterator</code> - the <code>Iterator</code> of values to join together</dd>
<dd><code>separator</code> - the separator character to use</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the joined String</dd>
</dl>
</li>
</ul>
<a name="replaceOnce-java.lang.String-char-char-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>replaceOnce</h4>
<pre>public static java.lang.String replaceOnce(java.lang.String text,
char repl,
char with)</pre>
<div class="block"><p>Replace a char with another char inside a larger String, once.</p>
<p>A <code>null</code> reference passed to this method is a no-op.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>text</code> - text to search and replace in</dd>
<dd><code>repl</code> - char to search for</dd>
<dd><code>with</code> - char to replace with</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the text with any replacements processed</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../org/codehaus/plexus/util/StringUtils.html#replace-java.lang.String-char-char-int-"><code>replace(String text, char repl, char with, int max)</code></a></dd>
</dl>
</li>
</ul>
<a name="replace-java.lang.String-char-char-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>replace</h4>
<pre>public static java.lang.String replace(java.lang.String text,
char repl,
char with)</pre>
<div class="block"><p>Replace all occurances of a char within another char.</p>
<p>A <code>null</code> reference passed to this method is a no-op.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>text</code> - text to search and replace in</dd>
<dd><code>repl</code> - char to search for</dd>
<dd><code>with</code> - char to replace with</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the text with any replacements processed</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../org/codehaus/plexus/util/StringUtils.html#replace-java.lang.String-char-char-int-"><code>replace(String text, char repl, char with, int max)</code></a></dd>
</dl>
</li>
</ul>
<a name="replace-java.lang.String-char-char-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>replace</h4>
<pre>public static java.lang.String replace(java.lang.String text,
char repl,
char with,
int max)</pre>
<div class="block"><p>Replace a char with another char inside a larger String,
for the first <code>max</code> values of the search char.</p>
<p>A <code>null</code> reference passed to this method is a no-op.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>text</code> - text to search and replace in</dd>
<dd><code>repl</code> - char to search for</dd>
<dd><code>with</code> - char to replace with</dd>
<dd><code>max</code> - maximum number of values to replace, or <code>-1</code> if no maximum</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the text with any replacements processed</dd>
</dl>
</li>
</ul>
<a name="replaceOnce-java.lang.String-java.lang.String-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>replaceOnce</h4>
<pre>public static java.lang.String replaceOnce(java.lang.String text,
java.lang.String repl,
java.lang.String with)</pre>
<div class="block"><p>Replace a String with another String inside a larger String, once.</p>
<p>A <code>null</code> reference passed to this method is a no-op.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>text</code> - text to search and replace in</dd>
<dd><code>repl</code> - String to search for</dd>
<dd><code>with</code> - String to replace with</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the text with any replacements processed</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../org/codehaus/plexus/util/StringUtils.html#replace-java.lang.String-java.lang.String-java.lang.String-int-"><code>replace(String text, String repl, String with, int max)</code></a></dd>
</dl>
</li>
</ul>
<a name="replace-java.lang.String-java.lang.String-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>replace</h4>
<pre>public static java.lang.String replace(java.lang.String text,
java.lang.String repl,
java.lang.String with)</pre>
<div class="block"><p>Replace all occurances of a String within another String.</p>
<p>A <code>null</code> reference passed to this method is a no-op.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>text</code> - text to search and replace in</dd>
<dd><code>repl</code> - String to search for</dd>
<dd><code>with</code> - String to replace with</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the text with any replacements processed</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../org/codehaus/plexus/util/StringUtils.html#replace-java.lang.String-java.lang.String-java.lang.String-int-"><code>replace(String text, String repl, String with, int max)</code></a></dd>
</dl>
</li>
</ul>
<a name="replace-java.lang.String-java.lang.String-java.lang.String-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>replace</h4>
<pre>public static java.lang.String replace(java.lang.String text,
java.lang.String repl,
java.lang.String with,
int max)</pre>
<div class="block"><p>Replace a String with another String inside a larger String,
for the first <code>max</code> values of the search String.</p>
<p>A <code>null</code> reference passed to this method is a no-op.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>text</code> - text to search and replace in</dd>
<dd><code>repl</code> - String to search for</dd>
<dd><code>with</code> - String to replace with</dd>
<dd><code>max</code> - maximum number of values to replace, or <code>-1</code> if no maximum</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the text with any replacements processed</dd>
</dl>
</li>
</ul>
<a name="overlayString-java.lang.String-java.lang.String-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>overlayString</h4>
<pre>public static java.lang.String overlayString(java.lang.String text,
java.lang.String overlay,
int start,
int end)</pre>
<div class="block"><p>Overlay a part of a String with another String.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>text</code> - String to do overlaying in</dd>
<dd><code>overlay</code> - String to overlay</dd>
<dd><code>start</code> - int to start overlaying at</dd>
<dd><code>end</code> - int to stop overlaying before</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>String with overlayed text</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - if text or overlay is <code>null</code></dd>
</dl>
</li>
</ul>
<a name="center-java.lang.String-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>center</h4>
<pre>public static java.lang.String center(java.lang.String str,
int size)</pre>
<div class="block"><p>Center a String in a larger String of size <code>n</code>.<p>
<p>Uses spaces as the value to buffer the String with.
Equivalent to <code>center(str, size, " ")</code>.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - String to center</dd>
<dd><code>size</code> - int size of new String</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>String containing centered String</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - if str is <code>null</code></dd>
</dl>
</li>
</ul>
<a name="center-java.lang.String-int-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>center</h4>
<pre>public static java.lang.String center(java.lang.String str,
int size,
java.lang.String delim)</pre>
<div class="block"><p>Center a String in a larger String of size <code>n</code>.</p>
<p>Uses a supplied String as the value to buffer the String with.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - String to center</dd>
<dd><code>size</code> - int size of new String</dd>
<dd><code>delim</code> - String to buffer the new String with</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>String containing centered String</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - if str or delim is <code>null</code></dd>
<dd><code>java.lang.ArithmeticException</code> - if delim is the empty String</dd>
</dl>
</li>
</ul>
<a name="chomp-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>chomp</h4>
<pre>public static java.lang.String chomp(java.lang.String str)</pre>
<div class="block"><p>Remove the last newline, and everything after it from a String.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - String to chomp the newline from</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>String without chomped newline</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - if str is <code>null</code></dd>
</dl>
</li>
</ul>
<a name="chomp-java.lang.String-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>chomp</h4>
<pre>public static java.lang.String chomp(java.lang.String str,
java.lang.String sep)</pre>
<div class="block"><p>Remove the last value of a supplied String, and everything after
it from a String.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - String to chomp from</dd>
<dd><code>sep</code> - String to chomp</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>String without chomped ending</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - if str or sep is <code>null</code></dd>
</dl>
</li>
</ul>
<a name="chompLast-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>chompLast</h4>
<pre>public static java.lang.String chompLast(java.lang.String str)</pre>
<div class="block"><p>Remove a newline if and only if it is at the end
of the supplied String.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - String to chomp from</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>String without chomped ending</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - if str is <code>null</code></dd>
</dl>
</li>
</ul>
<a name="chompLast-java.lang.String-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>chompLast</h4>
<pre>public static java.lang.String chompLast(java.lang.String str,
java.lang.String sep)</pre>
<div class="block"><p>Remove a value if and only if the String ends with that value.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - String to chomp from</dd>
<dd><code>sep</code> - String to chomp</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>String without chomped ending</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - if str or sep is <code>null</code></dd>
</dl>
</li>
</ul>
<a name="getChomp-java.lang.String-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getChomp</h4>
<pre>public static java.lang.String getChomp(java.lang.String str,
java.lang.String sep)</pre>
<div class="block"><p>Remove everything and return the last value of a supplied String, and
everything after it from a String.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - String to chomp from</dd>
<dd><code>sep</code> - String to chomp</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>String chomped</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - if str or sep is <code>null</code></dd>
</dl>
</li>
</ul>
<a name="prechomp-java.lang.String-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>prechomp</h4>
<pre>public static java.lang.String prechomp(java.lang.String str,
java.lang.String sep)</pre>
<div class="block"><p>Remove the first value of a supplied String, and everything before it
from a String.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - String to chomp from</dd>
<dd><code>sep</code> - String to chomp</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>String without chomped beginning</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - if str or sep is <code>null</code></dd>
</dl>
</li>
</ul>
<a name="getPrechomp-java.lang.String-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPrechomp</h4>
<pre>public static java.lang.String getPrechomp(java.lang.String str,
java.lang.String sep)</pre>
<div class="block"><p>Remove and return everything before the first value of a
supplied String from another String.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - String to chomp from</dd>
<dd><code>sep</code> - String to chomp</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>String prechomped</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - if str or sep is <code>null</code></dd>
</dl>
</li>
</ul>
<a name="chop-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>chop</h4>
<pre>public static java.lang.String chop(java.lang.String str)</pre>
<div class="block"><p>Remove the last character from a String.</p>
<p>If the String ends in <code>\r\n</code>, then remove both
of them.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - String to chop last character from</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>String without last character</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - if str is <code>null</code></dd>
</dl>
</li>
</ul>
<a name="chopNewline-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>chopNewline</h4>
<pre>public static java.lang.String chopNewline(java.lang.String str)</pre>
<div class="block"><p>Remove <code>\n</code> from end of a String if it's there.
If a <code>\r</code> precedes it, then remove that too.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - String to chop a newline from</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>String without newline</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - if str is <code>null</code></dd>
</dl>
</li>
</ul>
<a name="escape-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>escape</h4>
<pre>public static java.lang.String escape(java.lang.String str)</pre>
<div class="block"><p>Escapes any values it finds into their String form.</p>
<p>So a tab becomes the characters <code>'\\'</code> and
<code>'t'</code>.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - String to escape values in</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>String with escaped values</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - if str is <code>null</code></dd>
</dl>
</li>
</ul>
<a name="repeat-java.lang.String-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>repeat</h4>
<pre>public static java.lang.String repeat(java.lang.String str,
int repeat)</pre>
<div class="block"><p>Repeat a String <code>n</code> times to form a
new string.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - String to repeat</dd>
<dd><code>repeat</code> - number of times to repeat str</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>String with repeated String</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NegativeArraySizeException</code> - if <code>repeat < 0</code></dd>
<dd><code>java.lang.NullPointerException</code> - if str is <code>null</code></dd>
</dl>
</li>
</ul>
<a name="rightPad-java.lang.String-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>rightPad</h4>
<pre>public static java.lang.String rightPad(java.lang.String str,
int size)</pre>
<div class="block"><p>Right pad a String with spaces.</p>
<p>The String is padded to the size of <code>n</code>.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - String to repeat</dd>
<dd><code>size</code> - number of times to repeat str</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>right padded String</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - if str is <code>null</code></dd>
</dl>
</li>
</ul>
<a name="rightPad-java.lang.String-int-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>rightPad</h4>
<pre>public static java.lang.String rightPad(java.lang.String str,
int size,
java.lang.String delim)</pre>
<div class="block"><p>Right pad a String with a specified string.</p>
<p>The String is padded to the size of <code>n</code>.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - String to pad out</dd>
<dd><code>size</code> - size to pad to</dd>
<dd><code>delim</code> - String to pad with</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>right padded String</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - if str or delim is <code>null</code></dd>
<dd><code>java.lang.ArithmeticException</code> - if delim is the empty String</dd>
</dl>
</li>
</ul>
<a name="leftPad-java.lang.String-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>leftPad</h4>
<pre>public static java.lang.String leftPad(java.lang.String str,
int size)</pre>
<div class="block"><p>Left pad a String with spaces.</p>
<p>The String is padded to the size of <code>n</code>.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - String to pad out</dd>
<dd><code>size</code> - size to pad to</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>left padded String</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - if str or delim is <code>null</code></dd>
</dl>
</li>
</ul>
<a name="leftPad-java.lang.String-int-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>leftPad</h4>
<pre>public static java.lang.String leftPad(java.lang.String str,
int size,
java.lang.String delim)</pre>
<div class="block">Left pad a String with a specified string. Pad to a size of n.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - String to pad out</dd>
<dd><code>size</code> - size to pad to</dd>
<dd><code>delim</code> - String to pad with</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>left padded String</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - if str or delim is null</dd>
<dd><code>java.lang.ArithmeticException</code> - if delim is the empty string</dd>
</dl>
</li>
</ul>
<a name="strip-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>strip</h4>
<pre>public static java.lang.String strip(java.lang.String str)</pre>
<div class="block"><p>Remove whitespace from the front and back of a String.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - the String to remove whitespace from</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the stripped String</dd>
</dl>
</li>
</ul>
<a name="strip-java.lang.String-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>strip</h4>
<pre>public static java.lang.String strip(java.lang.String str,
java.lang.String delim)</pre>
<div class="block"><p>Remove a specified String from the front and back of a
String.</p>
<p>If whitespace is wanted to be removed, used the
<a href="../../../../org/codehaus/plexus/util/StringUtils.html#strip-java.lang.String-"><code>strip(java.lang.String)</code></a> method.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - the String to remove a string from</dd>
<dd><code>delim</code> - the String to remove at start and end</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the stripped String</dd>
</dl>
</li>
</ul>
<a name="stripAll-java.lang.String:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>stripAll</h4>
<pre>public static java.lang.String[] stripAll(java.lang.String[] strs)</pre>
<div class="block"><p>Strip whitespace from the front and back of every String
in the array.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>strs</code> - the Strings to remove whitespace from</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the stripped Strings</dd>
</dl>
</li>
</ul>
<a name="stripAll-java.lang.String:A-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>stripAll</h4>
<pre>public static java.lang.String[] stripAll(java.lang.String[] strs,
java.lang.String delimiter)</pre>
<div class="block"><p>Strip the specified delimiter from the front and back of
every String in the array.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>strs</code> - the Strings to remove a String from</dd>
<dd><code>delimiter</code> - the String to remove at start and end</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the stripped Strings</dd>
</dl>
</li>
</ul>
<a name="stripEnd-java.lang.String-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>stripEnd</h4>
<pre>public static java.lang.String stripEnd(java.lang.String str,
java.lang.String strip)</pre>
<div class="block"><p>Strip any of a supplied String from the end of a String.</p>
<p>If the strip String is <code>null</code>, whitespace is
stripped.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - the String to remove characters from</dd>
<dd><code>strip</code> - the String to remove</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the stripped String</dd>
</dl>
</li>
</ul>
<a name="stripStart-java.lang.String-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>stripStart</h4>
<pre>public static java.lang.String stripStart(java.lang.String str,
java.lang.String strip)</pre>
<div class="block"><p>Strip any of a supplied String from the start of a String.</p>
<p>If the strip String is <code>null</code>, whitespace is
stripped.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - the String to remove characters from</dd>
<dd><code>strip</code> - the String to remove</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the stripped String</dd>
</dl>
</li>
</ul>
<a name="upperCase-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>upperCase</h4>
<pre>public static java.lang.String upperCase(java.lang.String str)</pre>
<div class="block"><p>Convert a String to upper case, <code>null</code> String
returns <code>null</code>.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - the String to uppercase</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the upper cased String</dd>
</dl>
</li>
</ul>
<a name="lowerCase-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>lowerCase</h4>
<pre>public static java.lang.String lowerCase(java.lang.String str)</pre>
<div class="block"><p>Convert a String to lower case, <code>null</code> String
returns <code>null</code>.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - the string to lowercase</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the lower cased String</dd>
</dl>
</li>
</ul>
<a name="uncapitalise-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>uncapitalise</h4>
<pre>public static java.lang.String uncapitalise(java.lang.String str)</pre>
<div class="block"><p>Uncapitalise a String.</p>
<p>That is, convert the first character into lower-case.
<code>null</code> is returned as <code>null</code>.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - the String to uncapitalise</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>uncapitalised String</dd>
</dl>
</li>
</ul>
<a name="capitalise-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>capitalise</h4>
<pre>public static java.lang.String capitalise(java.lang.String str)</pre>
<div class="block"><p>Capitalise a String.</p>
<p>That is, convert the first character into title-case.
<code>null</code> is returned as <code>null</code>.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - the String to capitalise</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>capitalised String</dd>
</dl>
</li>
</ul>
<a name="swapCase-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>swapCase</h4>
<pre>public static java.lang.String swapCase(java.lang.String str)</pre>
<div class="block"><p>Swaps the case of String.</p>
<p>Properly looks after making sure the start of words
are Titlecase and not Uppercase.</p>
<p><code>null</code> is returned as <code>null</code>.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - the String to swap the case of</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the modified String</dd>
</dl>
</li>
</ul>
<a name="capitaliseAllWords-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>capitaliseAllWords</h4>
<pre>public static java.lang.String capitaliseAllWords(java.lang.String str)</pre>
<div class="block"><p>Capitalise all the words in a String.</p>
<p>Uses <code>Character.isWhitespace(char)</code> as a
separator between words.</p>
<p><code>null</code> will return <code>null</code>.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - the String to capitalise</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>capitalised String</dd>
</dl>
</li>
</ul>
<a name="uncapitaliseAllWords-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>uncapitaliseAllWords</h4>
<pre>public static java.lang.String uncapitaliseAllWords(java.lang.String str)</pre>
<div class="block"><p>Uncapitalise all the words in a string.</p>
<p>Uses <code>Character.isWhitespace(char)</code> as a
separator between words.</p>
<p><code>null</code> will return <code>null</code>.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - the string to uncapitalise</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>uncapitalised string</dd>
</dl>
</li>
</ul>
<a name="getNestedString-java.lang.String-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getNestedString</h4>
<pre>public static java.lang.String getNestedString(java.lang.String str,
java.lang.String tag)</pre>
<div class="block"><p>Get the String that is nested in between two instances of the
same String.</p>
<p>If <code>str</code> is <code>null</code>, will
return <code>null</code>.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - the String containing nested-string</dd>
<dd><code>tag</code> - the String before and after nested-string</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the String that was nested, or <code>null</code></dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - if tag is <code>null</code></dd>
</dl>
</li>
</ul>
<a name="getNestedString-java.lang.String-java.lang.String-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getNestedString</h4>
<pre>public static java.lang.String getNestedString(java.lang.String str,
java.lang.String open,
java.lang.String close)</pre>
<div class="block"><p>Get the String that is nested in between two Strings.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - the String containing nested-string</dd>
<dd><code>open</code> - the String before nested-string</dd>
<dd><code>close</code> - the String after nested-string</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the String that was nested, or <code>null</code></dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - if open or close is <code>null</code></dd>
</dl>
</li>
</ul>
<a name="countMatches-java.lang.String-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>countMatches</h4>
<pre>public static int countMatches(java.lang.String str,
java.lang.String sub)</pre>
<div class="block"><p>How many times is the substring in the larger String.</p>
<p><code>null</code> returns <code>0</code>.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - the String to check</dd>
<dd><code>sub</code> - the substring to count</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the number of occurances, 0 if the String is <code>null</code></dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - if sub is <code>null</code></dd>
</dl>
</li>
</ul>
<a name="isAlpha-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isAlpha</h4>
<pre>public static boolean isAlpha(java.lang.String str)</pre>
<div class="block"><p>Checks if the String contains only unicode letters.</p>
<p><code>null</code> will return <code>false</code>.
An empty String will return <code>true</code>.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - the String to check</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><code>true</code> if only contains letters, and is non-null</dd>
</dl>
</li>
</ul>
<a name="isWhitespace-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isWhitespace</h4>
<pre>public static boolean isWhitespace(java.lang.String str)</pre>
<div class="block"><p>Checks if the String contains only whitespace.</p>
<p><code>null</code> will return <code>false</code>. An
empty String will return <code>true</code>.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - the String to check</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><code>true</code> if only contains whitespace, and is non-null</dd>
</dl>
</li>
</ul>
<a name="isAlphaSpace-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isAlphaSpace</h4>
<pre>public static boolean isAlphaSpace(java.lang.String str)</pre>
<div class="block"><p>Checks if the String contains only unicode letters and
space (<code>' '</code>).</p>
<p><code>null</code> will return <code>false</code>. An
empty String will return <code>true</code>.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - the String to check</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><code>true</code> if only contains letters and space,
and is non-null</dd>
</dl>
</li>
</ul>
<a name="isAlphanumeric-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isAlphanumeric</h4>
<pre>public static boolean isAlphanumeric(java.lang.String str)</pre>
<div class="block"><p>Checks if the String contains only unicode letters or digits.</p>
<p><code>null</code> will return <code>false</code>. An empty
String will return <code>true</code>.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - the String to check</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><code>true</code> if only contains letters or digits,
and is non-null</dd>
</dl>
</li>
</ul>
<a name="isAlphanumericSpace-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isAlphanumericSpace</h4>
<pre>public static boolean isAlphanumericSpace(java.lang.String str)</pre>
<div class="block"><p>Checks if the String contains only unicode letters, digits
or space (<code>' '</code>).</p>
<p><code>null</code> will return <code>false</code>. An empty
String will return <code>true</code>.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - the String to check</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><code>true</code> if only contains letters, digits or space,
and is non-null</dd>
</dl>
</li>
</ul>
<a name="isNumeric-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isNumeric</h4>
<pre>public static boolean isNumeric(java.lang.String str)</pre>
<div class="block"><p>Checks if the String contains only unicode digits.</p>
<p><code>null</code> will return <code>false</code>.
An empty String will return <code>true</code>.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - the String to check</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><code>true</code> if only contains digits, and is non-null</dd>
</dl>
</li>
</ul>
<a name="isNumericSpace-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isNumericSpace</h4>
<pre>public static boolean isNumericSpace(java.lang.String str)</pre>
<div class="block"><p>Checks if the String contains only unicode digits or space
(<code>' '</code>).</p>
<p><code>null</code> will return <code>false</code>. An empty
String will return <code>true</code>.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - the String to check</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><code>true</code> if only contains digits or space,
and is non-null</dd>
</dl>
</li>
</ul>
<a name="defaultString-java.lang.Object-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>defaultString</h4>
<pre>public static java.lang.String defaultString(java.lang.Object obj)</pre>
<div class="block"><p>Returns either the passed in <code>Object</code> as a String,
or, if the <code>Object</code> is <code>null</code>, an empty
String.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>obj</code> - the Object to check</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the passed in Object's toString, or blank if it was
<code>null</code></dd>
</dl>
</li>
</ul>
<a name="defaultString-java.lang.Object-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>defaultString</h4>
<pre>public static java.lang.String defaultString(java.lang.Object obj,
java.lang.String defaultString)</pre>
<div class="block"><p>Returns either the passed in <code>Object</code> as a String,
or, if the <code>Object</code> is <code>null</code>, a passed
in default String.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>obj</code> - the Object to check</dd>
<dd><code>defaultString</code> - the default String to return if str is
<code>null</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the passed in string, or the default if it was
<code>null</code></dd>
</dl>
</li>
</ul>
<a name="reverse-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>reverse</h4>
<pre>public static java.lang.String reverse(java.lang.String str)</pre>
<div class="block"><p>Reverse a String.</p>
<p><code>null</code> String returns <code>null</code>.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - the String to reverse</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the reversed String</dd>
</dl>
</li>
</ul>
<a name="reverseDelimitedString-java.lang.String-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>reverseDelimitedString</h4>
<pre>public static java.lang.String reverseDelimitedString(java.lang.String str,
java.lang.String delimiter)</pre>
<div class="block"><p>Reverses a String that is delimited by a specific character.</p>
<p>The Strings between the delimiters are not reversed.
Thus java.lang.String becomes String.lang.java (if the delimiter
is <code>'.'</code>).</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - the String to reverse</dd>
<dd><code>delimiter</code> - the delimiter to use</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the reversed String</dd>
</dl>
</li>
</ul>
<a name="abbreviate-java.lang.String-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>abbreviate</h4>
<pre>public static java.lang.String abbreviate(java.lang.String s,
int maxWidth)</pre>
<div class="block">Turn "Now is the time for all good men" into "Now is the time for..."
<p>
Specifically:
<p>
If str is less than max characters long, return it.
Else abbreviate it to (substring(str, 0, max-3) + "...").
If maxWidth is less than 3, throw an IllegalArgumentException.
In no case will it return a string of length greater than maxWidth.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>maxWidth</code> - maximum length of result string</dd>
</dl>
</li>
</ul>
<a name="abbreviate-java.lang.String-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>abbreviate</h4>
<pre>public static java.lang.String abbreviate(java.lang.String s,
int offset,
int maxWidth)</pre>
<div class="block">Turn "Now is the time for all good men" into "...is the time for..."
<p>
Works like abbreviate(String, int), but allows you to specify a "left edge"
offset. Note that this left edge is not necessarily going to be the leftmost
character in the result, or the first
character following the ellipses, but it will appear somewhere in the result.
In no case will it return a string of length greater than maxWidth.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>offset</code> - left edge of source string</dd>
<dd><code>maxWidth</code> - maximum length of result string</dd>
</dl>
</li>
</ul>
<a name="difference-java.lang.String-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>difference</h4>
<pre>public static java.lang.String difference(java.lang.String s1,
java.lang.String s2)</pre>
<div class="block">Compare two strings, and return the portion where they differ.
(More precisely, return the remainder of the second string,
starting from where it's different from the first.)
<p>
E.g. strdiff("i am a machine", "i am a robot") -> "robot"</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the portion of s2 where it differs from s1; returns the empty string ("") if they are equal</dd>
</dl>
</li>
</ul>
<a name="differenceAt-java.lang.String-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>differenceAt</h4>
<pre>public static int differenceAt(java.lang.String s1,
java.lang.String s2)</pre>
<div class="block">Compare two strings, and return the index at which the strings begin to differ.
<p>
E.g. strdiff("i am a machine", "i am a robot") -> 7
</p></div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the index where s2 and s1 begin to differ; -1 if they are equal</dd>
</dl>
</li>
</ul>
<a name="interpolate-java.lang.String-java.util.Map-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>interpolate</h4>
<pre>public static java.lang.String interpolate(java.lang.String text,
java.util.Map namespace)</pre>
</li>
</ul>
<a name="removeAndHump-java.lang.String-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>removeAndHump</h4>
<pre>public static java.lang.String removeAndHump(java.lang.String data,
java.lang.String replaceThis)</pre>
</li>
</ul>
<a name="capitalizeFirstLetter-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>capitalizeFirstLetter</h4>
<pre>public static java.lang.String capitalizeFirstLetter(java.lang.String data)</pre>
</li>
</ul>
<a name="lowercaseFirstLetter-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>lowercaseFirstLetter</h4>
<pre>public static java.lang.String lowercaseFirstLetter(java.lang.String data)</pre>
</li>
</ul>
<a name="addAndDeHump-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addAndDeHump</h4>
<pre>public static java.lang.String addAndDeHump(java.lang.String view)</pre>
</li>
</ul>
<a name="quoteAndEscape-java.lang.String-char-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>quoteAndEscape</h4>
<pre>public static java.lang.String quoteAndEscape(java.lang.String source,
char quoteChar)</pre>
<div class="block"><p>Quote and escape a String with the given character, handling <code>null</code>.</p>
<pre>
StringUtils.quoteAndEscape(null, *) = null
StringUtils.quoteAndEscape("", *) = ""
StringUtils.quoteAndEscape("abc", '"') = abc
StringUtils.quoteAndEscape("a\"bc", '"') = "a\"bc"
StringUtils.quoteAndEscape("a\"bc", '\'') = 'a\"bc'
</pre></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>source</code> - </dd>
<dd><code>quoteChar</code> - </dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the String quoted and escaped</dd>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>1.5.1</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../org/codehaus/plexus/util/StringUtils.html#quoteAndEscape-java.lang.String-char-char:A-char:A-char-boolean-"><code>quoteAndEscape(String, char, char[], char[], char, boolean)</code></a></dd>
</dl>
</li>
</ul>
<a name="quoteAndEscape-java.lang.String-char-char:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>quoteAndEscape</h4>
<pre>public static java.lang.String quoteAndEscape(java.lang.String source,
char quoteChar,
char[] quotingTriggers)</pre>
<div class="block"><p>Quote and escape a String with the given character, handling <code>null</code>.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>source</code> - </dd>
<dd><code>quoteChar</code> - </dd>
<dd><code>quotingTriggers</code> - </dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the String quoted and escaped</dd>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>1.5.1</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../org/codehaus/plexus/util/StringUtils.html#quoteAndEscape-java.lang.String-char-char:A-char:A-char-boolean-"><code>quoteAndEscape(String, char, char[], char[], char, boolean)</code></a></dd>
</dl>
</li>
</ul>
<a name="quoteAndEscape-java.lang.String-char-char:A-char-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>quoteAndEscape</h4>
<pre>public static java.lang.String quoteAndEscape(java.lang.String source,
char quoteChar,
char[] escapedChars,
char escapeChar,
boolean force)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>source</code> - </dd>
<dd><code>quoteChar</code> - </dd>
<dd><code>escapedChars</code> - </dd>
<dd><code>escapeChar</code> - </dd>
<dd><code>force</code> - </dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the String quoted and escaped</dd>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>1.5.1</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../org/codehaus/plexus/util/StringUtils.html#quoteAndEscape-java.lang.String-char-char:A-char:A-char-boolean-"><code>quoteAndEscape(String, char, char[], char[], char, boolean)</code></a></dd>
</dl>
</li>
</ul>
<a name="quoteAndEscape-java.lang.String-char-char:A-char:A-char-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>quoteAndEscape</h4>
<pre>public static java.lang.String quoteAndEscape(java.lang.String source,
char quoteChar,
char[] escapedChars,
char[] quotingTriggers,
char escapeChar,
boolean force)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>source</code> - </dd>
<dd><code>quoteChar</code> - </dd>
<dd><code>escapedChars</code> - </dd>
<dd><code>quotingTriggers</code> - </dd>
<dd><code>escapeChar</code> - </dd>
<dd><code>force</code> - </dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the String quoted and escaped</dd>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>1.5.1</dd>
</dl>
</li>
</ul>
<a name="escape-java.lang.String-char:A-char-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>escape</h4>
<pre>public static java.lang.String escape(java.lang.String source,
char[] escapedChars,
char escapeChar)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>source</code> - </dd>
<dd><code>escapedChars</code> - </dd>
<dd><code>escapeChar</code> - </dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the String escaped</dd>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>1.5.1</dd>
</dl>
</li>
</ul>
<a name="removeDuplicateWhitespace-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>removeDuplicateWhitespace</h4>
<pre>public static java.lang.String removeDuplicateWhitespace(java.lang.String s)</pre>
<div class="block">Remove all duplicate whitespace characters and line terminators are replaced with a single
space.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>s</code> - a not null String</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a string with unique whitespace.</dd>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>1.5.7</dd>
</dl>
</li>
</ul>
<a name="unifyLineSeparators-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>unifyLineSeparators</h4>
<pre>public static java.lang.String unifyLineSeparators(java.lang.String s)</pre>
<div class="block">Parses the given String and replaces all occurrences of
'\n', '\r' and '\r\n' with the system line separator.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>s</code> - a not null String</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a String that contains only System line separators.</dd>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>1.5.7</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../org/codehaus/plexus/util/StringUtils.html#unifyLineSeparators-java.lang.String-java.lang.String-"><code>unifyLineSeparators(String, String)</code></a></dd>
</dl>
</li>
</ul>
<a name="unifyLineSeparators-java.lang.String-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>unifyLineSeparators</h4>
<pre>public static java.lang.String unifyLineSeparators(java.lang.String s,
java.lang.String ls)</pre>
<div class="block">Parses the given String and replaces all occurrences of
'\n', '\r' and '\r\n' with the system line separator.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>s</code> - a not null String</dd>
<dd><code>ls</code> - the wanted line separator ("\n" on UNIX), if null using the System line separator.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a String that contains only System line separators.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - if ls is not '\n', '\r' and '\r\n' characters.</dd>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>1.5.7</dd>
</dl>
</li>
</ul>
<a name="contains-java.lang.String-char-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>contains</h4>
<pre>public static boolean contains(java.lang.String str,
char searchChar)</pre>
<div class="block"><p>Checks if String contains a search character, handling <code>null</code>.
This method uses <code>String.indexOf(int)</code>.</p>
<p>A <code>null</code> or empty ("") String will return <code>false</code>.</p>
<pre>
StringUtils.contains(null, *) = false
StringUtils.contains("", *) = false
StringUtils.contains("abc", 'a') = true
StringUtils.contains("abc", 'z') = false
</pre></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - the String to check, may be null</dd>
<dd><code>searchChar</code> - the character to find</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if the String contains the search character,
false if not or <code>null</code> string input</dd>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>1.5.7</dd>
</dl>
</li>
</ul>
<a name="contains-java.lang.String-java.lang.String-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>contains</h4>
<pre>public static boolean contains(java.lang.String str,
java.lang.String searchStr)</pre>
<div class="block"><p>Checks if String contains a search String, handling <code>null</code>.
This method uses <code>String.indexOf(int)</code>.</p>
<p>A <code>null</code> String will return <code>false</code>.</p>
<pre>
StringUtils.contains(null, *) = false
StringUtils.contains(*, null) = false
StringUtils.contains("", "") = true
StringUtils.contains("abc", "") = true
StringUtils.contains("abc", "a") = true
StringUtils.contains("abc", "z") = false
</pre></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - the String to check, may be null</dd>
<dd><code>searchStr</code> - the String to find, may be null</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if the String contains the search String,
false if not or <code>null</code> string input</dd>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>1.5.7</dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/codehaus/plexus/util/StringOutputStream.html" title="class in org.codehaus.plexus.util"><span class="typeNameLink">Prev Class</span></a></li>
<li><a href="../../../../org/codehaus/plexus/util/SweeperPool.html" title="class in org.codehaus.plexus.util"><span class="typeNameLink">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/codehaus/plexus/util/StringUtils.html" target="_top">Frames</a></li>
<li><a href="StringUtils.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li>Field | </li>
<li><a href="#constructor.summary">Constr</a> | </li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li><a href="#constructor.detail">Constr</a> | </li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>
|