fix #2; add java protocol parser impl
update doc
add java test file