Simple I/O Implementation using JNI