Read serial data in JNI