Partially implement EndOfStream.