Class IsbnUtil
- java.lang.Object
-
- de.knightsoftnet.validators.shared.util.IsbnUtil
-
public class IsbnUtil extends Object
Isbn Util, format and compress isbn (10 and 13).- Author:
- Manfred Tremmel
-
-
Field Summary
Fields Modifier and Type Field Description static charSEPARATORcharacter used for separating blocks.
-
Constructor Summary
Constructors Constructor Description IsbnUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
SEPARATOR
public static final char SEPARATOR
character used for separating blocks.- See Also:
- Constant Field Values
-
-
Method Detail
-
isbnFormatWithPos
public static ValueWithPos<String> isbnFormatWithPos(ValueWithPos<String> pentry)
format isbn10 or 13 with separator signs.- Parameters:
pentry- string to format and cursor position- Returns:
- formated string with new cursor position
-
isbnFormat
public static String isbnFormat(String pstring)
format isbn10 or 13 with separator signs.- Parameters:
pstring- string to format- Returns:
- formated string
-
isbn10FormatWithPos
public static ValueWithPos<String> isbn10FormatWithPos(ValueWithPos<String> pentry)
format isbn10 with separator signs.- Parameters:
pentry- string to format and cursor position- Returns:
- formated string with new cursor position
-
isbn10Format
public static String isbn10Format(String pstring)
format isbn10 with separator signs.- Parameters:
pstring- string to format- Returns:
- formated string
-
isbn13FormatWithPos
public static ValueWithPos<String> isbn13FormatWithPos(ValueWithPos<String> pentry)
format isbn13 with separator signs.- Parameters:
pentry- string to format and cursor position- Returns:
- formated string with new cursor position
-
isbn13Format
public static String isbn13Format(String pstring)
format isbn13 with separator signs.- Parameters:
pstring- string to format- Returns:
- formated string
-
-