Virtual function for inserting data into an output stream buffer. These functions should be overridden in derived classes.