Class UsAsciiUtils


  • public class UsAsciiUtils
    extends Object
    • Constructor Detail

      • UsAsciiUtils

        public UsAsciiUtils()
    • Method Detail

      • toPrintable

        public static String toPrintable​(String value)
                                  throws IllegalArgumentException
        Removes non-printable characters from the US-ASCII String.
        Parameters:
        value - The original String
        Returns:
        The possibly modified String, without non-printable US-ASCII characters.
        Throws:
        IllegalArgumentException - If the String is null or contains non US-ASCII characters.