Page Speed Optimization Libraries
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
net_instaweb::Writer Class Referenceabstract

Interface for writing bytes to an output stream. More...

#include "writer.h"

Inheritance diagram for net_instaweb::Writer:
net_instaweb::ApacheWriter net_instaweb::AsyncFetch net_instaweb::ChunkingWriter net_instaweb::CountingWriter net_instaweb::FileWriter net_instaweb::HTTPValue net_instaweb::InPlaceResourceRecorder net_instaweb::JsonWriter net_instaweb::NullWriter net_instaweb::SharedCircularBuffer net_instaweb::SplitWriter net_instaweb::StringWriter

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)

Detailed Description

Interface for writing bytes to an output stream.

Member Function Documentation

virtual bool net_instaweb::Writer::Dump ( Writer writer,
MessageHandler message_handler 

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.

The documentation for this class was generated from the following file: