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