improve - refactor X api definition
improve - implement new X api
fix - use new nio x api
fix - java doc and code style