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