diff mde/file/mergetag/Writer.d @ 151:e785e98d3b78

Updated for compatibility with tango 0.99.8.
author Diggory Hardy <diggory.hardy@gmail.com>
date Sat, 04 Apr 2009 17:32:18 +0200
parents 9f035cd139c6
children
line wrap: on
line diff
--- a/mde/file/mergetag/Writer.d	Sat Apr 04 11:59:27 2009 +0200
+++ b/mde/file/mergetag/Writer.d	Sat Apr 04 17:32:18 2009 +0200
@@ -37,7 +37,7 @@
 // tango imports
 import tango.core.Exception;
 import tango.io.device.File;
-import tango.io.stream.Buffer;
+import tango.io.stream.Buffered;
 import tango.util.log.Log : Log, Logger;
 
 private Logger logger;
@@ -171,13 +171,13 @@
         
         try {
             scope File conduit;		// actual conduit; don't use directly when there's content in the buffer
-            scope BufferOutput buffer;	// write strings directly to this (use opCall(void[]) )
+            scope BufferedOutput buffer;	// write strings directly to this (use opCall(void[]) )
             
             // Open a conduit on the file:
             conduit = new File (_path, File.WriteCreate);
             scope(exit) conduit.close();
             
-            buffer = new BufferOutput(conduit);	// And a buffer
+            buffer = new BufferedOutput(conduit);	// And a buffer
             scope(exit) buffer.flush();
             
             // Write the header:
@@ -201,11 +201,11 @@
         }
     }
         
-    private void writeSectionIdentifier (BufferOutput buffer, ID id) {
+    private void writeSectionIdentifier (BufferedOutput buffer, ID id) {
         buffer.append ("{" ~ id ~ "}" ~ Eol);
     }
     
-    private void writeSection (BufferOutput buffer, IDataSection sec) {
+    private void writeSection (BufferedOutput buffer, IDataSection sec) {
         void writeItem (char[] tp, ID id, char[] dt) {	// actually writes an item
             buffer.append ("<" ~ tp ~ "|" ~ id ~"=" ~ dt ~ ">" ~ Eol);
         }