Marek Safar
ad8e0f742e
StreamWriter async methods cannot call base TextWriter async methods. Fixes #11979
2013-05-09 17:42:28 +02:00
Marek Safar
8e318f410b
Break direct TPL dependency from stream classes
2013-02-16 13:15:52 +01:00
Petr Onderka
8ee32e8c0e
Added missing awaits to StreamWriter
2013-02-06 11:19:11 +01:00
Marek Safar
185743cacd
Rewrite of async StreamReader/StreamWritter operations to not fail on subsequent async call. Fixes #9761
2013-02-01 18:29:54 +01:00
Marek Safar
6194ac1fff
Remove unnecessary and incompatible finalizer
2012-10-04 11:53:14 +01:00
Marek Safar
2d12cfaf80
Flush StreamWriter buffer even if underlying stream is kept open. Fixes #7510
2012-10-04 11:53:14 +01:00
Marek Safar
7b51bb0cb1
Implement stream async methods
2011-09-28 08:09:33 +01:00
Marek Safar
11db01b5a1
Add few new 4.5 overloads
2011-09-19 19:34:27 +01:00
Rodrigo Kumpera
d72794cced
Reorder fields to improve object layout since the runtime can't do it for corlib types.
2011-05-23 01:13:09 -03:00
Gonzalo Paniagua Javier
21350653cc
2010-02-15 Gonzalo Paniagua Javier <[email protected] >
...
* StreamWriter.cs:
* FileStream.cs: if flushing fails when disposing the stream, make
sure it is closed before throwing the exception. Fixes bug #579146 .
svn path=/trunk/mcs/; revision=151761
2010-02-16 01:39:56 +00:00
Miguel de Icaza
0204abe803
Drop more obsolete defines
...
svn path=/trunk/mcs/; revision=144304
2009-10-17 01:35:27 +00:00
Marek Safar
cc9c53a109
Warnings cleanup
...
svn path=/trunk/mcs/; revision=111713
2008-08-27 15:40:13 +00:00
Gert Driesen
8d3024b086
* StreamWriter.cs: Change argument check for buffersize to require
...
positive number. Removed duplicate disposed check for AutoFlush.
Removed unnecessary initialization of bools.
* StreamWriterTest.cs: Added more .ctor tests. Enabled AutoFlush
test.
svn path=/trunk/mcs/; revision=110626
2008-08-15 22:00:24 +00:00
Gert Driesen
5daa245e52
* StreamWriter.cs: Removed duplicate argument checks from .ctor taking
...
path, as these checks are already done in FileStream .ctor. Removed
parameter name from ArgumentException to match MS.
* StreamWriterTest.cs: Moved ctor argument checks to separate methods.
Added and improved ctor tests. Added test for Close. Improved
(Auto)Flush tests. Use Assert class instead of Assertion.
svn path=/trunk/mcs/; revision=110610
2008-08-15 21:18:10 +00:00
Andreas N
b7ebfaf624
2008-07-03 Andreas Nahr <[email protected] >
...
* TextWriter.cs:
* StreamWriter.cs:
* StreamReader.cs:
* Stream.cs:
* MemoryStream.cs:
* File.cs:
* DriveNotFoundException.cs:
* Directory.cs: Fix parameter names
svn path=/trunk/mcs/; revision=107182
2008-07-03 20:00:51 +00:00
Dick Porter
5b79519900
2007-04-30 Dick Porter <[email protected] >
...
* Directory.cs:
* FileShare.cs:
* DirectoryNotFoundException.cs:
* SeekOrigin.cs:
* FileAttributes.cs:
* IOException.cs:
* MemoryStream.cs:
* FileMode.cs:
* BinaryWriter.cs:
* TextWriter.cs:
* File.cs:
* BinaryReader.cs:
* TextReader.cs:
* UnmanagedMemoryStream.cs:
* StringWriter.cs:
* FileAccess.cs:
* FileLoadException.cs:
* BufferedStream.cs:
* Stream.cs:
* FileInfo.cs:
* FileStream.cs:
* StringReader.cs:
* StreamWriter.cs:
* EndOfStreamException.cs:
* DriveInfo.cs:
* StreamReader.cs:
* PathTooLongException.cs:
* DriveType.cs:
* FileNotFoundException.cs: 2.0 profile updates
svn path=/trunk/mcs/; revision=76495
2007-04-30 14:05:12 +00:00
Miguel de Icaza
c205c908a8
2005-04-09 Miguel de Icaza <[email protected] >
...
* StreamWriter.cs (Initialize): Avoid echoing the preamble to a
file if the position of the stream is not at the beginning. Fixes
bug #74513
2005-04-09 Miguel de Icaza <[email protected] >
* StreamWriterTest.cs: New test for bug #74513 .
svn path=/trunk/mcs/; revision=42738
2005-04-09 19:23:15 +00:00
Ben Maurer
8942525843
2004-08-26 Ben Maurer <[email protected] >
...
* StreamWriter.cs: avoid String.ToCharArray for perf.
svn path=/trunk/mcs/; revision=32966
2004-08-28 13:03:15 +00:00
Dick Porter
3f4364ce9f
2004-08-18 Dick Porter <[email protected] >
...
* StreamWriter.cs: Flush the buffer if AutoFlush is set to true.
Fixes bug 63063, patch by Laurent Debacker ([email protected] ).
svn path=/trunk/mcs/; revision=32486
2004-08-18 13:53:30 +00:00
Dick Porter
d5abeccf1c
2004-08-13 Dick Porter <[email protected] >
...
* StreamWriter.cs: Allow FileShare.Read access to the underlying
FileStream, to be compatible with MS. Fixes bug 62152.
svn path=/trunk/mcs/; revision=32306
2004-08-13 13:39:40 +00:00
Duncan Mak
13d1764537
Add license and copyright to all source files in corlib
...
svn path=/trunk/mcs/; revision=29249
2004-06-11 02:09:36 +00:00
Duncan Mak
fa66940492
(Close): Remember to set the 'closed' flag.
...
svn path=/trunk/mcs/; revision=28003
2004-05-24 20:29:04 +00:00
Sebastien Pouliot
f9154436b5
2004-05-24 Sebastien Pouliot <[email protected] >
...
* StreamWriter.cs: Add dispose check to Write(char) and Write(char[]),
AutoFlush. Fixed possible integer overflow in Write(char[],int,int).
svn path=/trunk/mcs/; revision=27993
2004-05-24 19:29:11 +00:00
Andreas N
e64c2313da
2004-03-15 Andreas Nahr <[email protected] >
...
* StreamWriter.cs: Removed unneeded function
svn path=/trunk/mcs/; revision=24076
2004-03-15 21:59:16 +00:00
Paolo Molaro
837286e7d5
Tue Jan 20 23:10:22 CET 2004 Paolo Molaro <[email protected] >
...
* StreamWriter.cs, TextWriter.cs: comply with the documented
behaviour and use a decode buffer to improve performance.
svn path=/trunk/mcs/; revision=22315
2004-01-20 22:03:00 +00:00
Gonzalo Paniagua Javier
0f43e6d1c8
Fixed message in exception
...
svn path=/trunk/mcs/; revision=20160
2003-11-18 07:16:02 +00:00
Paolo Molaro
c730cb0d52
Tue Nov 19 13:01:22 CET 2002 Paolo Molaro <[email protected] >
...
* StreamWriter.cs: output the encoding preamble at the start of a
stream if needed.
svn path=/trunk/mcs/; revision=9069
2002-11-19 12:05:09 +00:00
Miguel de Icaza
cde968e5c4
2002-11-06 Miguel de Icaza <[email protected] >
...
* StreamWriter.cs: Changed all Encoding.UTF8 to Encoding.UTF8Unmarked.
svn path=/trunk/mcs/; revision=8860
2002-11-07 00:11:05 +00:00
Miguel de Icaza
855eae99ca
2002-11-06 Miguel de Icaza <[email protected] >
...
* StreamWriter.cs: Changed all Encoding.UTF8 to Encoding.UTF8Unmarked.
svn path=/trunk/mcs/; revision=8859
2002-11-07 00:09:42 +00:00
Miguel de Icaza
2e279403ec
2002-10-30 Miguel de Icaza <[email protected] >
...
* StreamWriter.cs: Ditto for Null stream.
* BinaryReader.cs: Use Unmarked here too.
svn path=/trunk/mcs/; revision=8687
2002-10-31 01:06:30 +00:00
Miguel de Icaza
5ac4160881
2002-09-09 Miguel de Icaza <[email protected] >
...
* StreamWriter.cs: When no encoding is provided, create an
encoding without markers, this is what MS does.
svn path=/trunk/mcs/; revision=7344
2002-09-09 21:50:52 +00:00
Duncan Mak
2b31a83b28
2002-08-29 Duncan Mak <[email protected] >
...
* StreamWriter.cs: Set DisposedAlready after calling flush. Fixes
the build for gtk#.
svn path=/trunk/mcs/; revision=7123
2002-08-28 09:22:19 +00:00
Gonzalo Paniagua Javier
5bf2383288
2002-08-27 Gonzalo Paniagua Javier <[email protected] >
...
* System.IO/BinaryReader.cs:
* System.IO/BinaryWriter.cs:
* System.IO/MemoryStream.cs:
* System.IO/StreamReader.cs:
* System.IO/StreamWriter.cs:
* System.IO/StringReader.cs:
* System.IO/StringWriter.cs:
* System.IO/TextWriter.cs:
* System.Threading/WaitHandle.cs: IDisposable fixes.
svn path=/trunk/mcs/; revision=7118
2002-08-28 02:30:47 +00:00
Gonzalo Paniagua Javier
2920d505fb
2002-08-23 Gonzalo Paniagua Javier <[email protected] >
...
* System/Double.cs: implemented TryParse.
* System/Math.cs: PowImpl is now private.
* System/MissingFieldException.cs: implemented Message.
* System/RuntimeMethodHandle.cs: stubbed GetFunctionPointer.
* System/_AppDomain.cs: Uncommented ToString.
* System.IO/FileLoadException.cs: implemented ToString.
* System.IO/StreamWriter.cs: added Null field and implemented
Write (char) and Write (char []).
svn path=/trunk/mcs/; revision=6955
2002-08-23 16:56:08 +00:00
Jason Diamond
1fba2759ab
Fixed another bug to help get the System.XML tests running on Linux (no more assertions). Added a makefile to build the System.XML tests on Linux.
...
svn path=/trunk/mcs/; revision=6388
2002-08-03 22:32:10 +00:00
Duncan Mak
9d55c814e2
2002-07-31 Duncan Mak <[email protected] >
...
* StreamReader.cs:
(Dispose): Added and implmented.
* StreamWriter.cs:
(Dispose): Fixed visibility.
(Initialize): Fixed visibility, made internal.
* BinaryReader.cs:
(Dispose): Fixed visibility.
svn path=/trunk/mcs/; revision=6279
2002-07-31 11:11:54 +00:00
Lawrence Pit
14b8d3b786
* StreamWriter.cs: added ability to write null value
...
* ConsoleTest.cs: added test writing null
svn path=/trunk/mcs/; revision=4832
2002-05-21 18:17:22 +00:00
Nick Drochak
8edd2d855a
2002-05-17 Nick Drochak <[email protected] >
...
* StreamWriter.cs: Implement buffering. Also implemented dispose
pattern as recommended by the MS docs. Must call Close() now
to ensure the buffer is flushed.
svn path=/trunk/mcs/; revision=4687
2002-05-16 12:03:38 +00:00
Nick Drochak
eda2a59d10
2002-05-15 Nick Drochak <[email protected] >
...
* Path.cs (GetDirectoryName): Return String.Empty if there is no
directory
* StreamReader.cs: Add some parameter checking on file names.
* StreamWriter.cs: Add some parameter checking on file names.
svn path=/trunk/mcs/; revision=4626
2002-05-14 11:46:20 +00:00
Nick Drochak
cc3463e338
2002-05-10 Nick Drochak <[email protected] >
...
* StreamWriter.cs (Flush): Throw proper exception if internal stream
has already been closed when we try to flush.
svn path=/trunk/mcs/; revision=4479
2002-05-10 10:19:22 +00:00
Nick Drochak
b229128329
2002-05-08 Nick Drochak <[email protected] >
...
* StreamWriter.cs: Add paramter check to constructors and throw
exceptions where appropriate.
svn path=/trunk/mcs/; revision=4369
2002-05-07 12:56:36 +00:00
Piers Haken
610d7923ac
added missing [Serializable] attribute
...
svn path=/trunk/mcs/; revision=3540
2002-04-01 20:22:40 +00:00
Martin Baulig
f7d11a6dc6
2002-03-19 Martin Baulig <[email protected] >
...
* StreamWriter.cs (StreamWriter (string)): The default is to override
the file, not to append to it.
(StreamWriter (string path, bool append)): When appending, seek to the
end of the file, otherwise truncate the file to zero length.
(Dispose (bool)): Close the internalStream.
(Flush): Flush the interalStream.
(Write (char[], int, int)): Flush the internalStream in auto-flush-mode.
svn path=/trunk/mcs/; revision=3207
2002-03-19 11:54:26 +00:00
Dietmar Maurer
43f3e90e35
2001-08-28 Dietmar Maurer <[email protected] >
...
* TextReader.cs: implemented the Read method
* StreamReader.cs: impl. stubs
* Console.cs: implemented the stdin stuff
svn path=/trunk/mcs/; revision=657
2001-08-28 13:26:34 +00:00
Dietmar Maurer
9de03899f8
2001-08-28 Dietmar Maurer <[email protected] >
...
* Console.cs: impl. (write only)
* Int32.cs: impl. real op_Equal
* UTF8Encoding.cs: impl. clumsy GetBytes
* StreamWriter.cs: impl.
* TextWriter.cs: implemented Write and WriteLine methods
svn path=/trunk/mcs/; revision=654
2001-08-28 10:37:08 +00:00