Top Constructors Methods
com.ongres.scram.common.util

public Class UsAsciiUtils

extends Object
Class Inheritance
Static Imports
com.ongres.scram.common.util.Preconditions.checkNotNull

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static String

Returns:

The possibly modified String, without non-printable US-ASCII characters.
toPrintable
(String
The original String
value
)

Removes non-printable characters from the US-ASCII String.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

UsAsciiUtilsback to summary
public UsAsciiUtils()

Method Detail

toPrintableback to summary
public static String toPrintable(String value) throws IllegalArgumentException

Removes non-printable characters from the US-ASCII String.

Parameters
value:String

The original String

Returns:String

The possibly modified String, without non-printable US-ASCII characters.

Exceptions
IllegalArgumentException:
If the String is null or contains non US-ASCII characters.