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 Details

    • SEPARATOR

      public static final char SEPARATOR
      character used for separating blocks.
      See Also:
  • Constructor Details

    • IsbnUtil

      public IsbnUtil()
  • Method Details

    • 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
    • isbnCompress

      public static String isbnCompress(String pstring)
      compress isbn, remove all separators inside.
      Parameters:
      pstring - string to compress
      Returns:
      isbn without separators