InpBufStream with an end