Added the encoding method for Errno.
Changed Java datatype for char * to byte[].
Renamed the function to write_slave_helper() for telling what it does.
Enhanced to generate returning methods for Java.

This version is available only for read(2).