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