class Poco::HexBinaryEncoder
Overview
This ostream encodes all data written to it in BinHex encoding and forwards it to a connected ostream. More…
#include <HexBinaryEncoder.h> class HexBinaryEncoder: public Poco::HexBinaryEncoderIOS, public ostream { public: // construction HexBinaryEncoder(std::ostream& ostr); };
Inherited Members
public: // methods int close(); HexBinaryEncoderBuf* rdbuf(); protected: // fields HexBinaryEncoderBuf _buf;
Detailed Documentation
This ostream encodes all data written to it in BinHex encoding and forwards it to a connected ostream.
Always call close() when done writing data, to ensure proper completion of the encoding operation. In hexBinary encoding, each binary octet is encoded as a character tuple, consisting of two hexadecimal digits ([0-9a-fA-F]) representing the octet code. See also: XML Schema Part 2: Datatypes (http://www.w3.org/TR/xmlschema-2/), section 3.2.15.
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.