Java implementation of Bopomofo object