Page Speed Optimization Libraries  1.4.26.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
net_instaweb::ChunkingWriter Class Reference

#include "chunking_writer.h"

Inheritance diagram for net_instaweb::ChunkingWriter:
net_instaweb::Writer

List of all members.

Public Member Functions

 ChunkingWriter (Writer *writer, int flush_limit)
virtual bool Write (const StringPiece &str, MessageHandler *handler)
virtual bool Flush (MessageHandler *handler)

Detailed Description

Wraps around an another writer forcing periodic flushes, and making sure writes are not too long.


Constructor & Destructor Documentation

net_instaweb::ChunkingWriter::ChunkingWriter ( Writer writer,
int  flush_limit 
)

This writer will force a flush every flush_limit bytes. If the flush_limit is <= 0 no extra flushing will be performed. This does NOT take ownership of passed-in writer.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines