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