Package com.ongres.scram.common
Class UsAsciiUtils
- java.lang.Object
-
- com.ongres.scram.common.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.
-
-
-
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.
-
-