Package org.apache.abdera.i18n.unicode

Examples of org.apache.abdera.i18n.unicode.UnicodeCharacterDatabase


           ClassNotFoundException {
    ClassLoader cl = Thread.currentThread().getContextClassLoader();
    InputStream is = cl.getResourceAsStream(UCD);
    GZIPInputStream gzip = new GZIPInputStream(is);
    ObjectInputStream ois = new ObjectInputStream(gzip);
    UnicodeCharacterDatabase ucd = (UnicodeCharacterDatabase) ois.readObject();
    ois.close();
    gzip.close();
    is.close();
    return ucd;
  }
View Full Code Here


   */
  public static void main(String... args) throws Exception {
    if (args.length == 0) usage();
    base = (args.length > 1) ? args[1]: "org/apache/abdera/i18n/unicode/data/";
    version = (args.length > 2) ? args[2]: "3.2.0";
    UnicodeCharacterDatabase ucd = UnicodeCharacterDatabase.getInstance();
    if (ucd == null) {
      ucd = new UnicodeCharacterDatabase();
      Loader.load(ucd);
    }
    save(ucd, args[0]);
  }
View Full Code Here

  public static StringBuffer normalize(
    String source,
    Form form,
    StringBuffer buf)
      throws IOException {
      UnicodeCharacterDatabase ucd = UnicodeCharacterDatabase.getInstance();
      if (source.length() != 0 && ucd != null) {
        decompose(ucd, source, form, buf);
        compose(ucd, form, buf);
      }
      return buf;
View Full Code Here

TOP

Related Classes of org.apache.abdera.i18n.unicode.UnicodeCharacterDatabase

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.