summaryrefslogtreecommitdiffstats
path: root/src/io/bufferstream.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/io/bufferstream.h (renamed from src/dom/io/bufferstream.h)38
1 files changed, 6 insertions, 32 deletions
diff --git a/src/dom/io/bufferstream.h b/src/io/bufferstream.h
index 0ac06b362..ed565572a 100644
--- a/src/dom/io/bufferstream.h
+++ b/src/io/bufferstream.h
@@ -31,20 +31,15 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <vector.h>
+#include "inkscapestream.h"
-#include "domstream.h"
-
-namespace org
-{
-namespace w3c
-{
-namespace dom
+namespace Inkscape
{
-namespace io
+namespace IO
{
-
//#########################################################################
//# S T R I N G I N P U T S T R E A M
//#########################################################################
@@ -59,21 +54,14 @@ class BufferInputStream : public InputStream
public:
BufferInputStream(const std::vector<unsigned char> &sourceBuffer);
-
virtual ~BufferInputStream();
-
virtual int available();
-
virtual void close();
-
virtual int get();
private:
-
const std::vector<unsigned char> &buffer;
-
long position;
-
bool closed;
}; // class BufferInputStream
@@ -95,15 +83,10 @@ class BufferOutputStream : public OutputStream
public:
BufferOutputStream();
-
virtual ~BufferOutputStream();
-
virtual void close();
-
virtual void flush();
-
virtual int put(gunichar ch);
-
virtual std::vector<unsigned char> &getBuffer()
{ return buffer; }
@@ -111,24 +94,15 @@ public:
{ buffer.clear(); }
private:
-
std::vector<unsigned char> buffer;
-
bool closed;
-
}; // class BufferOutputStream
-
-
-
-
-} //namespace io
-} //namespace dom
-} //namespace w3c
-} //namespace org
+} //namespace IO
+} //namespace Inkscape