diff --git a/src/dom/io/domstream.h b/src/dom/io/domstream.h
index af43d0a51718511b1bccc809dac740d9d3022bc9..273782b6776872aa3660300d5fb4f3ad05f0ac77 100644 (file)
--- a/src/dom/io/domstream.h
+++ b/src/dom/io/domstream.h
* Authors:
* Bob Jamison
*
- * Copyright (C) 2005 Bob Jamison
+ * Copyright (C) 2006-2007 Bob Jamison
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
-#include "dom.h"
+#include <dom/dom.h>
namespace org
{
/**
* Send one byte to the destination stream.
*/
- virtual void put(XMLCh ch) = 0;
+ virtual int put(XMLCh ch) = 0;
}; // class OutputStream
virtual void flush();
- virtual void put(XMLCh ch);
+ virtual int put(XMLCh ch);
protected:
void flush()
{ }
- void put(XMLCh ch)
- { putchar(ch); }
+ int put(XMLCh ch)
+ { putchar(ch); return 1; }
};
virtual void flush() = 0;
- virtual void put(XMLCh ch) = 0;
+ virtual int put(XMLCh ch) = 0;
/* Formatted output */
- virtual Writer& printf(char *fmt, ...) = 0;
+ virtual Writer& printf(const DOMString &fmt, ...) = 0;
virtual Writer& writeChar(char val) = 0;
virtual void flush();
- virtual void put(XMLCh ch);
+ virtual int put(XMLCh ch);
/* Formatted output */
- virtual Writer &printf(char *fmt, ...);
+ virtual Writer &printf(const DOMString &fmt, ...);
virtual Writer& writeChar(char val);
BasicWriter()
{ destination = NULL; }
+ //Used for printf() or other things that might
+ //require formatting before sending down the stream
+ char formatBuf[2048];
+
private:
}; // class BasicWriter
virtual void flush();
- virtual void put(XMLCh ch);
+ virtual int put(XMLCh ch);
private:
virtual void flush();
- virtual void put(XMLCh ch);
+ virtual int put(XMLCh ch);
private: