org.scijava.util
Class StringUtils

java.lang.Object
  extended by org.scijava.util.StringUtils

public final class StringUtils
extends Object

Useful methods for working with Strings.

Author:
Curtis Rueden, Chris Allan, Melissa Linkert

Method Summary
static boolean samePrefix(String s1, String s2)
          Checks if two filenames have the same prefix.
static String sanitize(String s)
          Removes unprintable characters from the given string.
static String sanitizeDouble(String value)
          Normalizes the decimal separator for the user's locale.
static String stripNulls(String toStrip)
          Removes null bytes from a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

sanitizeDouble

public static String sanitizeDouble(String value)
Normalizes the decimal separator for the user's locale.


stripNulls

public static String stripNulls(String toStrip)
Removes null bytes from a string.


samePrefix

public static boolean samePrefix(String s1,
                                 String s2)
Checks if two filenames have the same prefix.


sanitize

public static String sanitize(String s)
Removes unprintable characters from the given string.



Copyright © 2009–2015 SciJava. All rights reserved.