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