Package com.ongres.scram.common
Class UsAsciiUtils
java.lang.Object
com.ongres.scram.common.UsAsciiUtils
Utility to remove non-printable characters from the US-ASCII String.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static char[]
toPrintable
(char[] value) Removes non-printable characters from the US-ASCII String.(package private) static String
toPrintable
(String value) Removes non-printable characters from the US-ASCII String.
-
Constructor Details
-
UsAsciiUtils
private UsAsciiUtils()
-
-
Method Details
-
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:
IllegalArgumentException
- If the String is null or contains non US-ASCII characters.
-
toPrintable
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.
-