2003-04-11 Ville Palo <vi64pa@kolumbus.fi>
[mono.git] / mcs / class / corlib / System.IO / ChangeLog
1 2003-04-11  Ville Palo <vi64pa@kolumbus.fi>
2
3         * StringReader.cs: Throws exceptions if constructor parameter is null.
4         
5 2003-04-11  Ville Palo <vi64pa@kolumbus.fi>
6
7         * StringWriter.cs: Now throws an exception if StringBuilder parameter
8         is null
9         
10 2003-04-05  Miguel de Icaza  <miguel@ximian.com>
11
12         * TextWriter.cs: Implemented Synchronized method.
13
14         * TextReader.cs: Implemented Synchronized method.
15
16 2003-04-04  Miguel de Icaza  <miguel@ximian.com>
17
18         * FileStream.cs (Read, ReadByte, Seek): throw
19         ObjectDisposedException if the handle has been released.
20         
21         (Read): Throw exceptions specified in the spec.
22
23         (Read, Write, ReadSegment, WriteSegment): There is no requirement for any
24         instance methods of FileStream to be thread safe, so remove all
25         the calls to lock on the object
26
27 2003-03-31  Nick Drochak <ndrochak@gol.com>
28
29         * Path.cs (GetDirectoryName): Throw proper execption when path is empty.
30
31 2003-03-20  Lluis Sanchez Gual <lluis@ideary.com>
32
33         * FileNotFoundException.cs: fixed serialization bug.
34
35 2003-03-18  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
36
37         * StringWriter.cs : don't release internalString on Dispose().
38
39 2003-03-07  Gonzalo Paniagua Javier <gonzalo@ximian.com>
40
41         * StreamReader.cs: fixed bug #39280.
42
43 2003-03-07  Gonzalo Paniagua Javier <gonzalo@ximian.com>
44
45         * Directory.cs: readded mkdir -p behavior. Thanks to kiwnix for
46         pointing it out.
47
48 2003-03-05  Gonzalo Paniagua Javier <gonzalo@ximian.com>
49
50         * MemoryStream.cs: general fixes and reformatted. Passes all tests in
51         the new MemoryStreamTest.
52
53 2003-03-05  Gonzalo Paniagua Javier <gonzalo@ximian.com>
54
55         * MemoryStream.cs: undo my bogus fix in ToArray. Allow GetBuffer and
56         ToArray even after closing the stream.
57
58 2003-03-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
59
60         * Directory.cs:
61         (Move): don't use File.Move.
62         * DirectoryInfo.cs: fixed Name property.
63         
64         Fixes bug #37755.
65
66 2003-03-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>
67
68         * DirectoryInfo.cs: changed ToString to match MS behavior.
69         * Path.cs: further fixes to GetDirectoryName to return null in the
70         same cases that MS does.
71
72         Fixes bug #38387.
73
74 2003-03-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>
75
76         * Path.cs: fixed a couple of bugs reported in #35906.
77
78 2003-03-01  Gonzalo Paniagua Javier <gonzalo@ximian.com>
79
80         * Directory.cs: fixed bugs #38939 and #38940. No need for separate
81         unix/windows/unc shares code paths.
82
83 2003-02-27  Gonzalo Paniagua Javier <gonzalo@ximian.com>
84
85         * File.cs: fix by Elan Feingold <efeingold@mn.rr.com> for
86         SetCreationTime, SetLastAccessTime and SetLastWriteTime.
87
88 2003-02-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>
89
90         * MemoryStream.cs:
91         (ToArray): return only the portion of the buffer that contains
92         data, not the whole buffer. (note: this makes XmlDocument.Load work
93         again with documents that have a <?xml without the 'encoding'
94         attribute, which makes gtk-sharp generator work again).
95
96 2003-02-25  Nick Drochak <ndrochak@gol.com>
97
98         * File.cs (GetCreationTime): Throw proper execption when path is not
99         found.
100
101 Tue Feb 25 11:55:35 CET 2003 Paolo Molaro <lupus@ximian.com>
102
103         * MemoryStream.cs: make it behave sanely when the stream is
104         incrementally expanded.
105
106 2003-02-21  Dick Porter  <dick@ximian.com>
107
108         * FileStream.cs: Use locks around buffer manipulations.  Fixes bug
109         32344
110
111 2003-02-18  Dick Porter  <dick@ximian.com>
112
113         * FileStream.cs: Make FileMode.Append work, and check for Seeking
114         back over old data (undocumented ms behaviour, throws an exception
115         if you try).  Fixes bug 35975.
116
117 2003-02-17  Dick Porter  <dick@ximian.com>
118
119         * FileStream.cs: Don't close the handle if the stream doesn't own
120         it.  Patch from Raymond Penners (raymond@dotsphinx.com), bug
121         35623.
122
123 2003-02-14  Zoltan Varga  <vargaz@freemail.hu>
124
125         * FileStream.cs (Write): flush after writing the last segment as well.
126
127 2003-02-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>
128
129         * StringReader.cs:
130         (ReadLine): fixed the case when the string ends with a '\n'.
131
132 2003-02-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
133
134         * MemoryStream.cs: create the buffer of the specified capacity.
135
136 2003-01-31  Patrik Torstensson
137
138         * MemoryStream.cs: use BlockCopyInternal instead of Array.Copy, this is
139         the same way as MS does it (performance improvement)
140
141 2003-01-29  Zoltan Varga  <vargaz@freemail.hu>
142
143         * Directory.cs (GetFileSystemEntries): moved error handling to the
144         correct instance of GetFileSystemEntries so all callers can enjoy it.
145
146 2003-01-28  Zoltan Varga  <vargaz@freemail.hu>
147
148         * File.cs: add error handling to Get...Time methods.
149
150 2003-01-26  Zoltan Varga  <vargaz@freemail.hu>
151
152         * Directory.cs: fix GetParent so it actually works.
153
154 2003-01-24  Gonzalo Paniagua Javier <gonzalo@ximian.com>
155
156         * Path.cs: fixlet to ChangeExtension for the case when the path is
157         empty.
158
159 2003-01-23  Gonzalo Paniagua Javier <gonzalo@ximian.com>
160
161         * BufferedStream.cs: don't try to write a 0 sized array on when
162         flushing the stream.
163         
164         Fixes bug #37045.
165
166 2003-01-18  Jonathan Pryor <jonpryor@vt.edu>
167
168         * FileStream.cs: Add IsAsync property.  (Documented in "C# In A Nutshell".)
169
170 2003-01-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
171
172         * MemoryStream.cs: fixed bug #36319.
173
174 2002-12-16  Eduardo Garcia Cebollero <kiwnix@yahoo.es>
175         
176         * Directory.cs: Some fixes to SMB shares handling, and not compiling 
177         with csc, mcs compiles it correctly (mcs bug 35652)
178
179 2002-12-14  Eduardo Garcia Cebollero <kiwnix@yahoo.es>
180
181         * Directory.cs: Some fixes related to correct some exceptions thrown
182
183 2002-12-11  Eduardo Garcia Cebollero <kiwnix@yahoo.es>
184
185         * Directory.cs: Some Exceptions added, fixed GetParent(),
186         CreateDirectory() should work with unix, native windows and
187         windows samba shares. Converted end-lines from dos-mode to unix-mode
188
189 2002-12-08  Eduardo Garcia Cebollero <kiwnix@yahoo.es>
190
191         * Directory.cs: CreateDirectory  works now with Absolute paths
192         too, not only with relative ones.
193
194 2002-12-07  Peter Williams  <peterw@ximian.com>
195
196         * Directory.cs: Don't use the uninitialized pathsumm here.
197         Don't try and create "" if we're using an absolute path.
198
199 2002-12-07  Eduardo Garcia Cebollero <kiwnix@yahoo.es>
200
201         * Directory.cs: Now the creation of a new directory works recursively
202         it will make parents as needed.
203
204 2002-11-21  Gonzalo Paniagua Javier <gonzalo@ximian.com>
205
206         * BufferedStream.cs: applied patch from <carlosga@telefonica.net> that
207         fixes Flush ().
208
209 Tue Nov 19 13:01:22 CET 2002 Paolo Molaro <lupus@ximian.com>
210
211         * StreamWriter.cs: output the encoding preamble at the start of a
212         stream if needed.
213
214 2002-11-07  Gonzalo Paniagua Javier <gonzalo@ximian.com>
215
216         * StreamReader.cs: Changed all Encoding.UTF8 to Encoding.UTF8Unmarked.
217
218 2002-11-06  Miguel de Icaza  <miguel@ximian.com>
219
220         * StreamWriter.cs: Changed all Encoding.UTF8 to Encoding.UTF8Unmarked.
221
222 2002-10-31  Dick Porter  <dick@ximian.com>
223
224         * FileStream.cs: Fix buffering properly this time.  Also kludge
225         around broken pipe errors, treating them as EOF instead of
226         throwing an IO exception.
227
228         * MonoIO.cs: Return the error status in a parameter, as the
229         GetLastError() value has long since been blown away if we try and
230         look it up in a subsequent internal call invocation.
231
232         * FileSystemInfo.cs: 
233         * FileInfo.cs: 
234         * File.cs: 
235         * Directory.cs: MonoIO methods now have an error parameter
236
237 2002-10-31  Gonzalo Paniagua Javier <gonzalo@ximian.com>
238
239         * TextReader.cs: implemented ReadBlock ().
240
241 2002-10-30  Miguel de Icaza  <miguel@ximian.com>
242
243         * StreamWriter.cs: Ditto for Null stream.
244
245         * BinaryReader.cs: Use Unmarked here too.
246
247         * BinaryWriter.cs: Use the UTF8Unmarker encoding by default, this
248         is what .NET does.
249
250 2002-10-23  Dick Porter  <dick@ximian.com>
251
252         * FileStream.cs: Implemented CanSeek, and used it around all the
253         calls to MonoIO.Seek.  Fixed buffering in Read() so that it
254         doesn't block forever on short reads.
255
256         * MonoFileType.cs: New enum for GetFileType
257         
258         * MonoIO.cs: Added GetFileType
259
260 2002-10-21  Gonzalo Paniagua Javier <gonzalo@ximian.com>
261
262         * StreamReader.cs: ReadLine now treats a \r not followed by a \n as a
263         \n (this is what MS does).
264
265 2002-10-18  Dick Porter  <dick@ximian.com>
266
267         * FileStream.cs: SeekOrigin.End still calculates the offset from
268         the end of the file with positive values extending the length.
269         Fixes bug 32471.
270
271 2002-10-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
272
273         * Path.cs: some cleanup. Thanks to Martin Aliger.
274
275 2002-10-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
276
277         * FileStream.cs: throw an exception if trying to open a directory.
278         Thanks to Martin Aliger.
279
280 2002-10-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>
281
282         * Path.cs: fixes bug #28046.
283
284 2002-09-27  Gonzalo Paniagua Javier <gonzalo@ximian.com>
285
286         * StreamReader.cs: give more information when wrong parameters passed.
287
288 2002-09-21  Miguel de Icaza  <miguel@ximian.com>
289
290         * FileStream.cs: Do not call FSync on the file.
291
292 2002-09-16  Miguel de Icaza  <miguel@ximian.com>
293
294         * TextWriter.cs (Null): The Null field should be an instance of a
295         TextWriter class that does nothing, so it is an instance of the
296         NullTextWriter class.
297
298 2002-09-16  Nick Drochak  <ndrochak@gol.com>
299
300         * MemoryStream.cs (Close): Don't throw an exception if the stream
301         is already closed.
302
303 2002-09-15  Miguel de Icaza  <miguel@ximian.com>
304
305         * FileStream.cs (Dispose): Call FlushBuffer(), and not Flush, as
306         Flush calls fsync().  
307
308         The API docs show no explicit mention that Flush() should even do
309         an fsync, I am thinking that we should drop that from the
310         runtime. 
311
312 2002-09-09  Miguel de Icaza  <miguel@ximian.com>
313
314         * StreamWriter.cs: When no encoding is provided, create an
315         encoding without markers, this is what MS does.
316
317 2002-09-06  Miguel de Icaza  <miguel@ximian.com>
318
319         * StreamReader.cs: Implement detection of byte marks and skipping
320         of byte marks at the beginning of the stream.
321
322         (ReadToEnd): Use buffered read instead of char-by-char
323         processing. 
324
325         Correct the default arguments for creating the StreamReader.
326
327 2002-08-29  Gonzalo Paniagua Javier <gonzalo@ximian.com>
328
329         * CheckArgument.cs: fixed check for empty string.
330         * Path.cs: various fixes. It passes all the tests in new PathTest.
331
332 2002-08-29  Duncan Mak  <duncan@ximian.com>
333
334         * StreamWriter.cs: Set DisposedAlready after calling flush. Fixes
335         the build for gtk#.
336
337 2002-08-27  Gonzalo Paniagua Javier <gonzalo@ximian.com>
338
339         * BinaryReader.cs:
340         * BinaryWriter.cs:
341         * MemoryStream.cs:
342         * StreamReader.cs:
343         * StreamWriter.cs:
344         * StringReader.cs:
345         * StringWriter.cs:
346         * TextWriter.cs: IDisposable fixes.
347
348 2002-08-24  Miguel de Icaza  <miguel@ximian.com>
349
350         * StreamReader.cs: Removed TODOs, as the code seems to be
351         complete. 
352
353         * Path.cs (GetTempFileName): Make this routine atomic by not
354         testing and then creating, but using the create call to ensure
355         that we own the filename.
356
357 2002-08-23  Gonzalo Paniagua Javier <gonzalo@ximian.com>
358
359         * FileLoadException.cs: implemented ToString.
360
361         * StreamWriter.cs: added Null field and implemented Write (char) and
362         Write (char []).
363
364 2002-08-23  Gonzalo Paniagua Javier <gonzalo@ximian.com>
365
366         * StreamReader.cs: implemented NullStreamReader.
367
368 2002-08-21  Miguel de Icaza  <miguel@ximian.com>
369
370         * Path.cs (GetDirectoryName): Fix for filenames with size = 1
371
372         * File.cs: Removed all references that threw exceptions when the
373         paths contains a colon, as this is a valid part of an identifier
374         on Unix.
375
376         Everywhere: The String.Empty return from GetDirectoryName means
377         that there is no directory information about the path.
378
379 2002-08-20  Gonzalo Paniagua Javier <gonzalo@ximian.com>
380
381         * FileNotFoundException.cs: use Message and InnerException from base
382         class. Changed Message and ToString ().
383
384 2002-08-19  Dick Porter  <dick@ximian.com>
385
386         * BinaryWriter.cs: The length of a string is counted in bytes, not
387         chars
388
389 2002-08-18  Dick Porter  <dick@ximian.com>
390
391         * BinaryReader.cs: Fixed buffering
392
393 2002-08-09  Nick Drochak  <ndrochak@gol.com>
394
395         * BinaryReader.cs: added virtual to Dispose(bool).
396
397 2002-08-03  Jason Diamond  <jason@injektilo.org>
398
399         * StringWriter.cs: Return UnicodeEncoding for Encoding property.
400
401 2002-08-03  Jason Diamond  <jason@injektilo.org>
402
403         * StreamWriter.cs: Use GetByteCount() to get exact length instead
404         of GetMaxByteCount when converting chars to bytes.
405
406 2002-07-31  Duncan Mak  <duncan@ximian.com>
407
408         * StreamReader.cs: 
409         (Dispose): Added and implmented.
410
411         * StreamWriter.cs: 
412         (Dispose): Fixed visibility.
413         (Initialize): Fixed visibility, made internal.
414
415         * BinaryReader.cs:
416         (Dispose): Fixed visibility.
417
418 2002-07-28  Gonzalo Paniagua Javier <gonzalo@ximian.com>
419
420         * File.cs:
421         (Create): allow file names without path.
422
423 Fri Jul 26 15:45:04 CEST 2002 Paolo Molaro <lupus@ximian.com>
424
425         * FileStream.cs: patch from erik@bagfors.nu to add
426         Name property support.
427
428 2002-07-20  Dick Porter  <dick@ximian.com>
429
430         * MonoIO.cs: Added icall to CreatePipe
431
432 2002-07-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
433
434         * FileInfo.cs: fixes buglet #27940
435
436 2002-07-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
437
438         * Path.cs: removed unneeded line from GetExtension.
439
440 2002-07-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
441
442         * FileStream.cs:
443         (.ctor): call MonoIO.GetException with the file name.
444
445 2002-07-02  Mike Kestner  <mkestner@speakeasy.net>
446
447         * StreamReader.cs: Guard against ^\n lines as pointed out by Gonzalo.
448
449 2002-07-02  Mike Kestner  <mkestner@speakeasy.net>
450
451         * StreamReader.cs: Revert the last Peek change and fix the ReadLine
452         end of line detection code instead.
453
454 2002-07-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>
455
456         * StreamReader.cs:
457         (Peek): no need to have seek capabilitites. 
458
459 2002-06-17  Dietmar Maurer  <dietmar@ximian.com>
460
461         * Path.cs (ChangeExtension): handle some special cases (fixes bug #25319)
462
463         * File.cs (Delete): only call Directory.Exists() if DirName != ""
464
465 2002-06-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
466
467         * Directory.cs: fixed bug #26133 and also test if the directory exist
468         before performing the search.
469
470 2002-06-12  Nick Drochak  <ndrochak@gol.com>
471
472         * StringReader.cs (ReadLine): Return null when we get to end of the
473         string.
474
475 2002-05-22  Lawrence Pit  <loz@cable.a2000.nl>
476
477         * StreamWriter.cs: added ability to write null value
478         
479 2002-05-19  Lawrence Pit  <loz@cable.a2000.nl>
480
481         * Stream.cs: NullStream.ReadByte now returns -1 instead of 0 to
482         prevent endless loops.
483
484 2002-05-17  Dan Lewis  <dihlewis@yahoo.co.uk>
485
486         * FileStream.cs: Enforce lower bound on buffer size.
487
488 2002-05-16  Piers Haken <piersh@friskit.com>
489
490         * Stream.cs: Implement synchronous {Begin|End}{Read|Write}() methods.
491
492 2002-05-17  Nick Drochak  <ndrochak@gol.com>
493
494         * StreamWriter.cs: Implement buffering.  Also implemented dispose
495         pattern as recommended by the MS docs.  Must call Close() now
496         to ensure the buffer is flushed.
497
498 2002-05-15  Nick Drochak  <ndrochak@gol.com>
499
500         * Path.cs (GetDirectoryName): Return String.Empty if there is no
501         directory
502
503         * StreamReader.cs: Add some parameter checking on file names.
504
505         * StreamWriter.cs: Add some parameter checking on file names.
506
507 2002-05-14 Nick Drochak  <ndrochak@gol.com>
508
509         * File.cs: Add parameter checks to most methods. Not completely done,
510         but all current unit tests pass.
511
512         * Path.cs: Implement GetTempFileName().
513
514 2002-05-10  Nick Drochak  <ndrochak@gol.com>
515
516         * StreamWriter.cs (Flush): Throw proper exception if internal stream
517         has already been closed when we try to flush.
518
519 2002/05/10  Nick Drochak <ndrochak@gol.com>
520
521         * FileNotFoundException.cs (ToString): Don't try to use the inner
522         exception, because it might be null.  Use the message instead.
523
524 2002-05-09  Nick Drochak  <ndrochak@gol.com>
525
526         * File.cs (Delete): Do not throw an exception if the file does not
527         exist.
528
529 2002-05-08  Mike Gray     <mikeg@mikegray.org>
530
531         * File.cs: According to ECMA spec and MS docs Copy(src, dest)
532         should not overwrite dest by default.
533
534 2002-05-08  Nick Drochak  <ndrochak@gol.com>
535
536         * StreamWriter.cs: Add paramter check to constructors and throw
537         exceptions where appropriate.
538
539 Tue May 7 11:47:46 CEST 2002 Paolo Molaro <lupus@ximian.com>
540
541         * StreamReader.cs: return the number of chars read even if we diddn't
542         fill the whole buffer (makes Sergey's ilasm work with mono).
543
544 2002-05-07  Mike Gray     <mikeg_us@hotmail.com> 
545
546         * FileInfo.cs (Create): Implement missing method.
547
548 2002-05-07  Mike Gray     <mikeg_us@hotmail.com>
549
550         * File.cs: Implemented CreateText method, and fixed dst compares
551         to compare against "" instead of null twice.
552
553 2002-05-05  Nick Drochak  <ndrochak@gol.com>
554
555         * StreamReader.cs: Throw exceptions where needed. Changed Null field to
556         use new internal class since null cannot be passed to constructor 
557         anymore. Also, fix a coule of small bugs.
558
559 2002-05-03  Nick Drochak  <ndrochak@gol.com>
560
561         * MemoryStream.cs: Refrain from allocating array until the space is
562         really needed. This fixes a bug in the Length property when the
563         constructor without the byte array is used.
564
565 2002-05-01  Duncan Mak  <duncan@ximian.com>
566
567         * DirectoryNotFoundException.cs (constructor): Added missing
568         serialization constructor.
569
570 2002-04-30  Duncan Mak  <duncan@ximian.com>
571
572         * FileLoadException.cs (constructors): Added missing (string,
573         string) ctor, as well as (string, string, Exception) ctor.
574
575         (Message): Added more info to the error message
576
577         (ToString): Added. We'll need to add the StackTrace stuff when
578         that works.
579
580         * FileShare.cs: Add a missing field, Inheritable.
581         
582         * TextReader.cs: Renamed Synchronised method to Synchronized.
583
584         * TextWriter.cs: Renamed Synchronised method to Synchronized.
585         Renamed protected member coreNewLine to CoreNewLine.
586
587 2002-04-30  Sergey Chaban  <serge@wildwestsoftware.com>
588
589         * BinaryReader.cs: Allocate buffer before its first use.
590         Handle end of stream properly. Methods to read native types
591         (ReadInt* etc.) are little-endian (see Compact Framework docs).
592
593         * BinaryWriter.cs: Store data in little-endian format.
594         Use internal buffer for conversions.
595
596 2002-03-31  Dick Porter  <dick@ximian.com>
597
598         * Directory.cs: Strip out "." and ".." from returned list
599
600         * FileAttributes.cs: Get the right enum values
601
602 2002-03-28  Dietmar Maurer  <dietmar@ximian.com>
603
604         * TextWriter.cs (write): added check for null
605
606 2002-03-28  Dan Lewis  <dihlewis@yahoo.co.uk>
607
608         * Directory.cs: Throws DirectoryNotFoundException.
609         * MonoIO.cs: Fixed to work around enum problem.
610
611 2002-03-27  Dan Lewis  <dihlewis@yahoo.co.uk>
612
613         * StreamReader.cs: Implemented ReadLine() and ReadEnd().
614
615 2002-03-27  Dan Lewis  <dihlewis@yahoo.co.uk>
616
617         * Directory.cs, File.cs, FileSystemInfo.cs, FileInfo.cs,
618         DirectoryInfo.cs, Path.cs: Modified to use MonoIO class instead of
619         wrapper and PAL classes.
620
621         * MonoIO.cs, MonoIOStat.cs, MonoIOError.cs: Added.
622
623 2002-03-25  Mike Kestner <mkestner@speakeasy.net>
624
625         * MemoryStream.cs (Read): Fixed bug in exception throw.
626
627 2002-03-24  Mike Kestner <mkestner@speakeasy.net>
628
629         * StreamReader.cs (ReadBuffer): Fix buffer merging bugs.
630
631 2002-03-23  Martin Baulig  <martin@gnome.org>
632
633         * StreamReader.cs: Always do buffered reading, use 4k blocks.
634         (Read (char[], int, int)): Implemented.
635         (DiscardBufferedData): Implemented.
636
637 2002-03-21  Mike Kestner <mkestner@speakeasy.net>
638
639         * StreamReader.cs : Fill out, add buffering, and use encoding.
640
641 2002-03-19  Martin Baulig  <martin@gnome.org>
642
643         * StreamWriter.cs (StreamWriter (string)): The default is to override
644         the file, not to append to it.
645         (StreamWriter (string path, bool append)): When appending, seek to the
646         end of the file, otherwise truncate the file to zero length.
647         (Dispose (bool)): Close the internalStream.
648         (Flush): Flush the interalStream.
649         (Write (char[], int, int)): Flush the internalStream in auto-flush-mode.
650
651 2002-03-19  Dan Lewis <dihlewis@yahoo.co.uk>
652
653         * FileStream.cs: Flush buffer before FileSetLength.
654
655 2002-02-28  Miguel de Icaza  <miguel@ximian.com>
656
657         * Stream.cs (NullStream): Do not track position, this beast does
658         nothing in practice.
659
660 2002-03-15  Dan Lewis <dihlewis@yahoo.co.uk>
661
662         * SearchPattern.cs: New class. Glob matching code for Directory.
663         * Directory.cs: Changed to use SearchPattern instead of mono_glob_*()
664
665 2002/03/15 Nick Drochak <ndrochak@gol.com>
666
667         * DirectoryInfo.cs: Fixed the overloaded GetDirectories and GetFiles.
668         This code seemed to be copied from somewhere, and it was close,
669         but didn't match the docs.  This was the last bit needed to get
670         NAnt to compile with our class libs.
671
672 2002-03-12  Duncan Mak  <duncan@ximian.com>
673
674         * EndOfStreamException.cs:
675         * FileLoadException.cs:
676         * FileNotFoundException.cs:
677         * PathTooLongException.cs: Changed the base classes to IOException
678         instead of SystemException.
679
680         * IOException.cs: Added missing constructors.
681         
682 2002-03-07  Nick Drochak  <ndrochak@gol.com>
683
684         * FileMode.cs: Docs don't say this should be explicitly derived from
685         int, so just make it a normal Enum.
686
687 2002-03-02  Jason Diamond  <jason@injektilo.org>
688
689         * StringReader.cs: Fixed off-by-one error in Peek() and Read().
690
691 2002-02-12  Nick Drochak  <ndrochak@gol.com>
692
693         * PathTooLongException.cs: put it in the correct namespace
694         * EndOfStreamException.cs: put it in the correct namespace
695
696 Thu Jan 31 17:32:32 CET 2002 Paolo Molaro <lupus@ximian.com>
697
698         * Directory.cs: handle opendir() return NULL and absolute filenames.
699
700 2002-01-31  Duncan Mak  <duncan@ximian.com>
701
702         * FileLoadException.cs:
703         * FileNotFoundException: Added missing bits for serialization.
704
705 Thu Jan 24 17:42:54 CET 2002 Paolo Molaro <lupus@ximian.com>
706
707         * Directory.cs: allow directories in GetFiles() mask.
708
709 2002-01-23  Miguel de Icaza  <miguel@ximian.com>
710
711         * FileInfo.c (CopyTo, MoveTo): Implement.
712
713         * FileStream.cs: Add argument checking to the constructor.
714
715         * File.cs: Rewrote most of the file.  Implement Copy, Open, Create,
716         OpenText, OpenWrite, Move.  Made pending methods flagged as MonoTODO. 
717         
718         * Directory.cs (Delete): reimplement without using DirectoryInfo.
719         (Delete): Implement the recursive version.
720         (GetCreationTime, GetLastWriteTime, GetLastAccessTime): Implement.
721         (Move): Reimplement.
722         (getNames): dead code removal.
723
724         * Path.cs: define an internal DirectorySeparatorStr that we use in
725         a few spots.
726
727         * Wrapper.cs: Updated to new version.
728         
729         * DirectoryInfo (Delete): Implement using the Directory API.
730
731         * DirectoryInfo.cs (GetFiles, GetDirectories, GetFileSystemInfos,
732         Delete, Create, Parent, Exists, MoveTo): Implement. 
733
734         * Directory.cs (GetListing): implement new utility function.
735         (GetDirectories): Implement.
736         (GetFileSystemEntries): Implement.
737         (GetFiles): Implement.
738
739         * CheckArgument.cs (Path): Do not allow null by default.
740
741 Tue Jan 22 22:53:23 CET 2002 Paolo Molaro <lupus@ximian.com>
742
743         * DirectoryInfo.cs, FileInfo.cs: do not use Debug from the system
744         assembly in corlib.
745
746 2002-01-20 Nick Drochak  <ndrochak@gol.com>
747
748         * SeekOrigin.cs: Added Serializable attribute.
749
750 2002-01-19  Duncan Mak  <duncan@ximian.com>
751
752         * PathTooLongException.cs: 
753         * EndOfStreamException.cs: Added to CVS.
754
755 Thu Jan 10 12:06:46 MST 2002 Matt Kimball <matt@kimball.net>
756
757         * BufferedStream.cs: Initial implemenation.  The synchronous
758         methods for both reading and writing are implemented.  I'll do the
759         asynchronous methods in a bit.
760         
761 Wed Jan  9 16:04:39 MST 2002 Matt Kimball <matt@kimball.net>
762
763         * BinaryWriter.cs: Initial implementation.  And it's all there.
764
765         * BinaryReader.cs: The constructor now uses the passed in encoding,
766         not UTF8 always.
767
768 Wed Jan  9 13:54:28 MST 2002 Matt Kimball <matt@kimbal.net>
769
770         * BinaryReader.cs: Initial implementation.  I think it's complete.
771
772 2002-01-04  Ravi Pratap  <ravi@ximian.com>
773
774         * CheckArgument.cs, CheckPermission.cs, Directory.cs: MonoTODO
775         attribute decorations.
776
777         * DirectoryInfo.cs, File.cs, FileInfo.cs, FileSystemInfo.cs,
778         Path.cs, TextReader.cs, TextWriter.cs : Ditto.
779
780         * FileLoadException.cs, FileNotFoundException.cs, StreamReader.cs: 
781         Ditto.
782
783 2001-12-11  Dick Porter  <dick@ximian.com>
784
785         * FileStream.cs: Use handles rather than casting file descriptors.
786         Added Handle property.
787
788 Wed Nov 14 16:47:47 CET 2001 Paolo Molaro <lupus@ximian.com>
789
790         * CheckPermission.cs: disable ModeAccess() code: it's wrong.
791         * FileStream.cs: only trow an exception if the read failed in ReadByte().
792         * StreamReader.cs: implement Peek and Read.
793         * TextWriter.cs: CLSCompliant updates.
794
795 2001-11-10  Sean MacIsaac  <macisaac@ximian.com>
796
797         * FileNotFoundException.cs: Added some constructors
798
799         * Path.cs (GetFullPath): Fixed implementation
800
801 Fri Nov 2 18:27:58 CET 2001 Paolo Molaro <lupus@ximian.com>
802
803         * DirectoryNotFoundException.cs: implemented.
804
805 Tue Sep 25 18:54:06 CEST 2001 Paolo Molaro <lupus@ximian.com>
806
807         * File.cs: fix signatures of the Open() and OpenRead() functions
808         (they are static).
809
810 Thu Sep 13 18:04:23 CEST 2001 Paolo Molaro <lupus@ximian.com>
811
812         * FileLoadException.cs, FileNotFoundException.cs: added.
813
814 2001-08-28  Dietmar Maurer  <dietmar@ximian.com>
815
816         * TextReader.cs: implemented the Read method
817
818         * StreamReader.cs: impl. stubs
819
820         * StreamWriter.cs: impl.
821
822         * TextWriter.cs: implemented Write and WriteLine methods
823
824 Sun Aug 26 23:01:41 CEST 2001 Paolo Molaro <lupus@ximian.com>
825
826         * FileAccess.cs, FileMode.cs: change values to be compatible with
827         the ms ones.
828         
829 Sun Aug 26 11:47:56 CEST 2001 Paolo Molaro <lupus@ximian.com>
830
831         * IOException.cs: Implemented System.IO.Exception.
832
833 2001-07-18  Michael Lambert <michaellambert@email.com>
834
835         *SeekOrigin.cs.cs, FileShare.cs, FileMode.cs, FileAccess.cs: Add.
836
837 2001-07-19  Marcin Szczepanski <marcins@zipworld.com.au>
838
839         * System.IO.MemoryStream.cs: Added.  Had quite a few cases of
840         "LAMESPEC", but the tests work against the MS implementation so
841         the major functions are right (ie. Read/Write/Seek).  Some more
842         tests required for the various constructors and exceptions.
843
844 2001-07-16  Marcin Szczepanski <marcins@zipworld.com.au>
845
846         * StringReader.cs, StringWriter.cs, TextReader.cs, TextWriter.cs:
847         New class implemenations.
848
849         * StringReaderTest.cs, StringWriterTest.cs: Test suite for the above.
850