Class UsAsciiUtils


  • final class UsAsciiUtils
    extends java.lang.Object
    Utility to remove non-printable characters from the US-ASCII String.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private UsAsciiUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static char[] toPrintable​(char[] value)
      Removes non-printable characters from the US-ASCII String.
      (package private) static java.lang.String toPrintable​(java.lang.String value)
      Removes non-printable characters from the US-ASCII String.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UsAsciiUtils

        private UsAsciiUtils()
    • Method Detail

      • toPrintable

        static char[] toPrintable​(char[] value)
        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:
        java.lang.IllegalArgumentException - If the String is null or contains non US-ASCII characters.
      • toPrintable

        static java.lang.String toPrintable​(java.lang.String value)
        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:
        java.lang.IllegalArgumentException - If the String is null or contains non US-ASCII characters.