Java port of ncss