Adding java docs, bug 1757.

Change-Id: Ief6a410a1fe61cfadc466d1f984e10669172bed2
Signed-off-by: Alex Fan <railor33@gmail.com>