Page Speed Optimization Libraries
1.13.35.1
|
Interface for writing bytes to an output stream. More...
#include "writer.h"
Public Member Functions | |
virtual bool | Write (const StringPiece &str, MessageHandler *handler)=0 |
virtual bool | Flush (MessageHandler *message_handler)=0 |
virtual bool | Dump (Writer *writer, MessageHandler *message_handler) |
Interface for writing bytes to an output stream.
|
virtual |
Dumps the contents of what's been written to the Writer. Many Writer implementations will not be able to do this, and the default implementation will return false. But StringWriter and SharedCircularBuffer can dump their contents, and override this with implementations that return true.
Reimplemented in net_instaweb::SharedCircularBuffer, and net_instaweb::StringWriter.