API.java allow partial reads