Only wrap the input stream in a buffer if it does not already support mark/reset.