Generic implementation if stream readall() method, immediately reused in unix io.FileIO implementation