Logo Search packages:      
Sourcecode: poco version File versions  Download package

Poco::Net::MultipartReader Class Reference

#include <MultipartReader.h>

List of all members.


Detailed Description

This class is used to split a MIME multipart message into its single parts.

The format of multipart messages is described in section 5.1 of RFC 2046.

To split a multipart message into its parts, do the following:

Always ensure that you read all data from the part stream, otherwise the MultipartReader will fail to find the next part.

Definition at line 102 of file MultipartReader.h.


Public Member Functions

const std::string & boundary () const
bool hasNextPart ()
 MultipartReader (std::istream &istr, const std::string &boundary)
 MultipartReader (std::istream &istr)
void nextPart (MessageHeader &messageHeader)
 Destroys the MultipartReader.
std::istream & stream () const
 ~MultipartReader ()

Protected Member Functions

void findFirstBoundary ()
 Returns the multipart boundary used by this reader.
void guessBoundary ()
void parseHeader (MessageHeader &messageHeader)
bool readLine (std::string &line, std::string::size_type n)

Private Member Functions

 MultipartReader (const MultipartReader &)
MultipartReaderoperator= (const MultipartReader &)

Private Attributes

std::string _boundary
std::istream & _istr
MultipartInputStream_pMPI

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

Generated by  Doxygen 1.6.0   Back to index