API.java allow partial reads
Merge pull request #385 from kanoi/hotplug

API.java allow partial reads