Abstract streams to deal with the whole buffered contents.