These javadocs reference buf and count which don't really exist in this implementation.