Mercurial > projects > dwt-win
comparison dwt/dwthelper/FileOutputStream.d @ 332:1ee938a6e02e
Tango updates, removing trace prints and added prints via Logger
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 01 Feb 2009 19:40:09 +0100 |
parents | 8d53428f9be0 |
children | 210994f12c4c |
comparison
equal
deleted
inserted
replaced
331:27479f54069d | 332:1ee938a6e02e |
---|---|
7 public import dwt.dwthelper.OutputStream; | 7 public import dwt.dwthelper.OutputStream; |
8 | 8 |
9 import dwt.dwthelper.utils; | 9 import dwt.dwthelper.utils; |
10 | 10 |
11 version(TANGOSVN){ | 11 version(TANGOSVN){ |
12 import tango.io.device.FileConduit; | 12 import TangoFile = tango.io.device.File; |
13 } else { | 13 } else { |
14 import tango.io.FileConduit; | 14 import TangoFile = tango.io.FileConduit; |
15 } | 15 } |
16 | 16 |
17 public class FileOutputStream : dwt.dwthelper.OutputStream.OutputStream { | 17 public class FileOutputStream : dwt.dwthelper.OutputStream.OutputStream { |
18 | 18 |
19 alias dwt.dwthelper.OutputStream.OutputStream.write write; | 19 alias dwt.dwthelper.OutputStream.OutputStream.write write; |
20 alias dwt.dwthelper.OutputStream.OutputStream.close close; | 20 alias dwt.dwthelper.OutputStream.OutputStream.close close; |
21 FileConduit fc; | 21 TangoFile.File fc; |
22 | 22 |
23 public this ( String name ){ | 23 public this ( String name ){ |
24 fc = new FileConduit( name, FileConduit.WriteCreate ); | 24 fc = new TangoFile.File( name, TangoFile.File.WriteCreate ); |
25 } | 25 } |
26 | 26 |
27 public this ( String name, bool append ){ | 27 public this ( String name, bool append ){ |
28 fc = new FileConduit( name, append ? FileConduit.WriteAppending : FileConduit.WriteCreate ); | 28 fc = new TangoFile.File( name, append ? TangoFile.File.WriteAppending : TangoFile.File.WriteCreate ); |
29 } | 29 } |
30 | 30 |
31 public this ( dwt.dwthelper.File.File file ){ | 31 public this ( dwt.dwthelper.File.File file ){ |
32 this( file.toString ); | 32 this( file.toString ); |
33 } | 33 } |