Friday, March 31, 2006

Resources Accessing in Java

If you want to access the resource files in an unique form in Java, please do NOT use FileInputStream because it can not work porperly in JAR file.

Instead of FileInputStream, please try the functions below:
ClassLoader.getResourceAsStream ("some/pkg/resource.properties");
Class.getResourceAsStream ("/some/pkg/resource.properties"); //This is passed in my application. The others are not tested yet.
ResourceBundle.getBundle ("some.pkg.resource");



Monday, March 27, 2006

Java library for Hanyu Pinyin: pinyin4j-1.0.0-beta is released!

SourceForge.net: Chinese Unicode to Hanyu Pinyin: "Java library to convert Chinese characters in Unicode form into Hanyu Pinyin representation."

// Main Features //

1. Convert Chinese into Hanyu Pinyin representations
2. Support multiple pronounciations
3. Several output format
3.1. Uppercase or lowercase
3.2. v or u:
3.3. with tone numbers or without tone

This page is powered by Blogger. Isn't yours?