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