Class Poco::Net::FilePartSource (original) (raw)
Library: Net
Package: Messages
Header: Poco/Net/FilePartSource.h
Description
An implementation of PartSource for plain files.
Inheritance
Direct Base Classes: PartSource
All Base Classes: PartSource
Member Summary
Member Functions: filename, getContentLength, stream
Inherited Functions: filename, getContentLength, headers, mediaType, stream
Constructors
FilePartSource
FilePartSource(
const std::string & path
);
FilePartSource
FilePartSource(
const std::string & path,
const std::string & mediaType
);
FilePartSource
FilePartSource(
const std::string & path,
const std::string & filename,
const std::string & mediaType
);
Destructor
~FilePartSource 
~FilePartSource();
Member Functions
filename 
const std::string & filename() const;
Returns the filename portion of the path.
getContentLength 
std::streamsize getContentLength() const;
Returns the file size.
stream 
std::istream & stream();
Returns a file input stream for the given file.