Java Utililty Methods Path String Blur

List of utility methods to do Path String Blur

  1. HOME
  2. Java
  3. P
  4. Path String Blur

Description

The list of methods to do Path String Blur are organized into topic(s).

Method

String blurPath(String s)
takes in a path string like a/b/c and blurs only the last component of it
if (!BLUR)
 return s;
if (s == null || s.length() <= 1)
 return s;
StringTokenizer st = new StringTokenizer(s, File.separator);
List<String> components = new ArrayList<String>();
while (st.hasMoreTokens()) {
 String x = st.nextToken();
...

AltStyle によって変換されたページ (->オリジナル) /