Java sscanf utility