Java version complete(needs write buffer)