Class UsAsciiUtils
- java.lang.Object
-
- com.impossibl.postgres.protocol.sasl.scram.util.UsAsciiUtils
-
public class UsAsciiUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description UsAsciiUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
toPrintable(String value)
Removes non-printable characters from the US-ASCII String.
-
-
-
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.
-
-