Class Poco::HexBinaryEncoderBuf
Author: Applied Informatics Software Engineering GmbH and Contributors
Date: 2009-11-24

# Poco

# class HexBinaryEncoderBuf

Library: Foundation
Package: Streams
Header: Poco/HexBinaryEncoder.h

## Description

This streambuf encodes all data written to it in hexBinary encoding and forwards it to a connected ostream. 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.

## Inheritance

Direct Base Classes: UnbufferedStreamBuf

All Base Classes: UnbufferedStreamBuf

## Member Summary

Member Functions: close, getLineLength, setLineLength, setUppercase

## Constructors

### HexBinaryEncoderBuf

HexBinaryEncoderBuf(
std::ostream & ostr
);

## Destructor

### ~HexBinaryEncoderBuf

~HexBinaryEncoderBuf();

## Member Functions

### close

int close();

Closes the stream buffer.

### getLineLength

int getLineLength() const;

Returns the currently set line length.

### setLineLength

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.

### setUppercase

void setUppercase(
bool flag = true
);

Specify whether hex digits a-f are written in upper or lower case.