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