Class IsbnUtil
java.lang.Object
de.knightsoftnet.validators.shared.util.IsbnUtil
Isbn Util, format and compress isbn (10 and 13).
- Author:
- Manfred Tremmel
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final charcharacter used for separating blocks. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringisbn10Format(String pstring) format isbn10 with separator signs.static ValueWithPos<String>isbn10FormatWithPos(ValueWithPos<String> pentry) format isbn10 with separator signs.static Stringisbn13Format(String pstring) format isbn13 with separator signs.static ValueWithPos<String>isbn13FormatWithPos(ValueWithPos<String> pentry) format isbn13 with separator signs.static StringisbnCompress(String pstring) compress isbn, remove all separators inside.static StringisbnFormat(String pstring) format isbn10 or 13 with separator signs.static ValueWithPos<String>isbnFormatWithPos(ValueWithPos<String> pentry) format isbn10 or 13 with separator signs.
-
Field Details
-
SEPARATOR
public static final char SEPARATORcharacter used for separating blocks.- See Also:
-
-
Constructor Details
-
IsbnUtil
public IsbnUtil()
-
-
Method Details
-
isbnFormat
format isbn10 or 13 with separator signs.- Parameters:
pstring- string to format- Returns:
- formated string
-
isbn10Format
format isbn10 with separator signs.- Parameters:
pstring- string to format- Returns:
- formated string
-
isbn13Format
format isbn13 with separator signs.- Parameters:
pstring- string to format- Returns:
- formated string
-
isbnCompress
compress isbn, remove all separators inside.- Parameters:
pstring- string to compress- Returns:
- isbn without separators