org.opends.server.schema
Class PrintableString
java.lang.Object
org.opends.server.schema.PrintableString
public class PrintableString
- extends java.lang.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.
Method Summary |
static boolean |
isPrintableCharacter(char c)
Indicates whether the provided character is a valid printable character. |
static boolean |
isPrintableString(java.lang.String s)
Indicates whether the provided string is a valid printable string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PrintableString
public PrintableString()
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:
true
if the provided character is a printable
character, or false
if not.
isPrintableString
public static boolean isPrintableString(java.lang.String s)
- Indicates whether the provided string is a valid printable string.
- Parameters:
s
- The string for which to make the determination.
- Returns:
true
if the provided string is a printable string, or
false
if not.