Library: Foundation
Package: Streams
Header: Poco/Base64Encoder.h
This streambuf base64-encodes all data written to it and forwards it to a connected ostream.
Note: The characters are directly written to the ostream's streambuf, thus bypassing the ostream. The ostream's state is therefore not updated to match the buffer's state.
Direct Base Classes: UnbufferedStreamBuf
All Base Classes: UnbufferedStreamBuf
Member Functions: close, getLineLength, setLineLength
Base64EncoderBuf(
std::ostream & ostr
);
~Base64EncoderBuf();
int close();
Closes the stream buffer.
int getLineLength() const;
Returns the currently set line length.
void setLineLength(
int lineLength
);
Specify the line length.
After the given number of characters have been written, a newline character will be written.
Specify 0 for an unlimited line length.