Package org.opends.server.schema
Class PrintableString
- java.lang.Object
-
- org.opends.server.schema.PrintableString
-
public class PrintableString extends Object
This class defines utility methods that can be used to determine whether a character string is printable as defined in X.520 and referenced in RFC 2252. Printable characters consist of the set of uppercase and lowercase alphabetic characters, numeric digits, quotation mark, open and close parentheses, plus, minus, comma, period, slash, colon, question mark, and space.
-
-
Constructor Summary
Constructors Constructor Description PrintableString()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisPrintableCharacter(char c)Indicates whether the provided character is a valid printable character.static booleanisPrintableString(String s)Indicates whether the provided string is a valid printable string.
-
-
-
Method Detail
-
isPrintableCharacter
public static boolean isPrintableCharacter(char c)
Indicates whether the provided character is a valid printable character.- Parameters:
c- The character for which to make the determination.- Returns:
trueif the provided character is a printable character, orfalseif not.
-
isPrintableString
public static boolean isPrintableString(String s)
Indicates whether the provided string is a valid printable string.- Parameters:
s- The string for which to make the determination.- Returns:
trueif the provided string is a printable string, orfalseif not.
-
-