Java String Truncate TruncateUrlPage(String strURL)

Here you can find the source of TruncateUrlPage(String strURL)

Description

Truncate Url Page

License

LGPL

Declaration

private static String TruncateUrlPage(String strURL) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

public class Main {

    private static String TruncateUrlPage(String strURL) {
        String strAllParam = null;
        String[] arrSplit = null;
        strURL = strURL.trim().toLowerCase();
        arrSplit = strURL.split("[?]");
        if (strURL.length() > 1) {
            if (arrSplit.length > 1) {
                if (arrSplit[1] != null) {
                    strAllParam = arrSplit[1];
                }/*from   w  w  w  .j a va2 s . c  o  m*/
            }
        }
        return strAllParam;
    }
}

Related

  1. truncateToMaxLen(String input, int len)
  2. truncateType(String s)
  3. truncateType(String type)
  4. truncateUri(String uri)
  5. truncateUrl(String url)
  6. truncateValue(String value, int limit, String endChars)
  7. truncateWhenUTF8(final String s, final int maxBytes)
  8. truncateWhiteSpace(int len, int tabSize, String indentStr)
  9. truncateWithDefault(String value, int size, String defaultValue)