XoringInputStream returns -1 when the input data runs out