java se zbuffer implementation