scuffed-code/icu4c/source/samples/xml2txt/DOMPrintFormatTarget.cpp
Vladimir Weinstein 89628f1df9 ICU-2107 added copyright notices
X-SVN-Rev: 10722
2002-12-18 08:31:34 +00:00

24 lines
756 B
C++

/******************************************************************************
* Copyright (C) 2002, International Business Machines Corporation and
* others. All Rights Reserved.
******************************************************************************/
#include "DOMPrintFormatTarget.h"
DOMPrintFormatTarget::DOMPrintFormatTarget() {
};
DOMPrintFormatTarget::DOMPrintFormatTarget(char* fileName) {
this->fileName = fileName;
}
DOMPrintFormatTarget::~DOMPrintFormatTarget() {};
void DOMPrintFormatTarget :: writeChars(const XMLByte* const toWrite,
const unsigned int count,
XMLFormatter * const formatter)
{
ofstream ofile( fileName, ios::app);
ofile.write((char *) toWrite, (int) count);
};