Class BCP47Validator

java.lang.Object
com.itextpdf.pdfua.checkers.utils.BCP47Validator

public class BCP47Validator extends Object
This class is a validator for IETF BCP 47 language tag (RFC 5646)
  • Method Details

    • validate

      public static boolean validate (String languageTag)
      Validate language tag against RFC 5646.
      Parameters:
      languageTag - language tag string
      Returns:
      true if it is a valid tag, false otherwise