[SofaKernel] properly clear the stream flags keep the eof flag for the caller to know it
[SofaKernel] properly clear the stream flags
keep the eof flag for the caller to know it

Anatoscope/sofa,Anatoscope/sofa,Anatoscope/sofa,Anatoscope/sofa,Anatoscope/sofa,Anatoscope/sofa,Anatoscope/sofa,Anatoscope/sofa,Anatoscope/sofa