Package org.apache.abdera.i18n.lang

Examples of org.apache.abdera.i18n.lang.InvalidLangTagSyntax


    }
    return true;
  }

  private static void verify(String[] tags) {
    if (tags.length == 0) throw new InvalidLangTagSyntax();
    String primary = tags[0];
    try {
      CharUtils.verify(primary,Constants.ALPHA);
    } catch (InvalidCharacterException e) {
      throw new InvalidLangTagSyntax();
    }
    for (int n = 1; n < tags.length; n++) {
      try {
        CharUtils.verify(tags[n],Constants.ALPHANUM);
      } catch (InvalidCharacterException e) {
        throw new InvalidLangTagSyntax();
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.abdera.i18n.lang.InvalidLangTagSyntax

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.