2002-08-09 Nick Drochak <ndrochak@gol.com>
[mono.git] / mcs / class / corlib / System.IO / ChangeLog
1 2002-08-09  Nick Drochak  <ndrochak@gol.com>
2
3         * BinaryReader.cs: added virtual to Dispose(bool).
4
5 2002-08-03  Jason Diamond  <jason@injektilo.org>
6
7         * StringWriter.cs: Return UnicodeEncoding for Encoding property.
8
9 2002-08-03  Jason Diamond  <jason@injektilo.org>
10
11         * StreamWriter.cs: Use GetByteCount() to get exact length instead
12         of GetMaxByteCount when converting chars to bytes.
13
14 2002-07-31  Duncan Mak  <duncan@ximian.com>
15
16         * StreamReader.cs: 
17         (Dispose): Added and implmented.
18
19         * StreamWriter.cs: 
20         (Dispose): Fixed visibility.
21         (Initialize): Fixed visibility, made internal.
22
23         * BinaryReader.cs:
24         (Dispose): Fixed visibility.
25
26 2002-07-28  Gonzalo Paniagua Javier <gonzalo@ximian.com>
27
28         * File.cs:
29         (Create): allow file names without path.
30
31 Fri Jul 26 15:45:04 CEST 2002 Paolo Molaro <lupus@ximian.com>
32
33         * FileStream.cs: patch from erik@bagfors.nu to add
34         Name property support.
35
36 2002-07-20  Dick Porter  <dick@ximian.com>
37
38         * MonoIO.cs: Added icall to CreatePipe
39
40 2002-07-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
41
42         * FileInfo.cs: fixes buglet #27940
43
44 2002-07-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
45
46         * Path.cs: removed unneeded line from GetExtension.
47
48 2002-07-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
49
50         * FileStream.cs:
51         (.ctor): call MonoIO.GetException with the file name.
52
53 2002-07-02  Mike Kestner  <mkestner@speakeasy.net>
54
55         * StreamReader.cs: Guard against ^\n lines as pointed out by Gonzalo.
56
57 2002-07-02  Mike Kestner  <mkestner@speakeasy.net>
58
59         * StreamReader.cs: Revert the last Peek change and fix the ReadLine
60         end of line detection code instead.
61
62 2002-07-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>
63
64         * StreamReader.cs:
65         (Peek): no need to have seek capabilitites. 
66
67 2002-06-17  Dietmar Maurer  <dietmar@ximian.com>
68
69         * Path.cs (ChangeExtension): handle some special cases (fixes bug #25319)
70
71         * File.cs (Delete): only call Directory.Exists() if DirName != ""
72
73 2002-06-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
74
75         * Directory.cs: fixed bug #26133 and also test if the directory exist
76         before performing the search.
77
78 2002-06-12  Nick Drochak  <ndrochak@gol.com>
79
80         * StringReader.cs (ReadLine): Return null when we get to end of the
81         string.
82
83 2002-05-22  Lawrence Pit  <loz@cable.a2000.nl>
84
85         * StreamWriter.cs: added ability to write null value
86         
87 2002-05-19  Lawrence Pit  <loz@cable.a2000.nl>
88
89         * Stream.cs: NullStream.ReadByte now returns -1 instead of 0 to
90         prevent endless loops.
91
92 2002-05-17  Dan Lewis  <dihlewis@yahoo.co.uk>
93
94         * FileStream.cs: Enforce lower bound on buffer size.
95
96 2002-05-16  Piers Haken <piersh@friskit.com>
97
98         * Stream.cs: Implement synchronous {Begin|End}{Read|Write}() methods.
99
100 2002-05-17  Nick Drochak  <ndrochak@gol.com>
101
102         * StreamWriter.cs: Implement buffering.  Also implemented dispose
103         pattern as recommended by the MS docs.  Must call Close() now
104         to ensure the buffer is flushed.
105
106 2002-05-15  Nick Drochak  <ndrochak@gol.com>
107
108         * Path.cs (GetDirectoryName): Return String.Empty if there is no
109         directory
110
111         * StreamReader.cs: Add some parameter checking on file names.
112
113         * StreamWriter.cs: Add some parameter checking on file names.
114
115 2002-05-14 Nick Drochak  <ndrochak@gol.com>
116
117         * File.cs: Add parameter checks to most methods. Not completely done,
118         but all current unit tests pass.
119
120         * Path.cs: Implement GetTempFileName().
121
122 2002-05-10  Nick Drochak  <ndrochak@gol.com>
123
124         * StreamWriter.cs (Flush): Throw proper exception if internal stream
125         has already been closed when we try to flush.
126
127 2002/05/10  Nick Drochak <ndrochak@gol.com>
128
129         * FileNotFoundException.cs (ToString): Don't try to use the inner
130         exception, because it might be null.  Use the message instead.
131
132 2002-05-09  Nick Drochak  <ndrochak@gol.com>
133
134         * File.cs (Delete): Do not throw an exception if the file does not
135         exist.
136
137 2002-05-08  Mike Gray     <mikeg@mikegray.org>
138
139         * File.cs: According to ECMA spec and MS docs Copy(src, dest)
140         should not overwrite dest by default.
141
142 2002-05-08  Nick Drochak  <ndrochak@gol.com>
143
144         * StreamWriter.cs: Add paramter check to constructors and throw
145         exceptions where appropriate.
146
147 Tue May 7 11:47:46 CEST 2002 Paolo Molaro <lupus@ximian.com>
148
149         * StreamReader.cs: return the number of chars read even if we diddn't
150         fill the whole buffer (makes Sergey's ilasm work with mono).
151
152 2002-05-07  Mike Gray     <mikeg_us@hotmail.com> 
153
154         * FileInfo.cs (Create): Implement missing method.
155
156 2002-05-07  Mike Gray     <mikeg_us@hotmail.com>
157
158         * File.cs: Implemented CreateText method, and fixed dst compares
159         to compare against "" instead of null twice.
160
161 2002-05-05  Nick Drochak  <ndrochak@gol.com>
162
163         * StreamReader.cs: Throw exceptions where needed. Changed Null field to
164         use new internal class since null cannot be passed to constructor 
165         anymore. Also, fix a coule of small bugs.
166
167 2002-05-03  Nick Drochak  <ndrochak@gol.com>
168
169         * MemoryStream.cs: Refrain from allocating array until the space is
170         really needed. This fixes a bug in the Length property when the
171         constructor without the byte array is used.
172
173 2002-05-01  Duncan Mak  <duncan@ximian.com>
174
175         * DirectoryNotFoundException.cs (constructor): Added missing
176         serialization constructor.
177
178 2002-04-30  Duncan Mak  <duncan@ximian.com>
179
180         * FileLoadException.cs (constructors): Added missing (string,
181         string) ctor, as well as (string, string, Exception) ctor.
182
183         (Message): Added more info to the error message
184
185         (ToString): Added. We'll need to add the StackTrace stuff when
186         that works.
187
188         * FileShare.cs: Add a missing field, Inheritable.
189         
190         * TextReader.cs: Renamed Synchronised method to Synchronized.
191
192         * TextWriter.cs: Renamed Synchronised method to Synchronized.
193         Renamed protected member coreNewLine to CoreNewLine.
194
195 2002-04-30  Sergey Chaban  <serge@wildwestsoftware.com>
196
197         * BinaryReader.cs: Allocate buffer before its first use.
198         Handle end of stream properly. Methods to read native types
199         (ReadInt* etc.) are little-endian (see Compact Framework docs).
200
201         * BinaryWriter.cs: Store data in little-endian format.
202         Use internal buffer for conversions.
203
204 2002-03-31  Dick Porter  <dick@ximian.com>
205
206         * Directory.cs: Strip out "." and ".." from returned list
207
208         * FileAttributes.cs: Get the right enum values
209
210 2002-03-28  Dietmar Maurer  <dietmar@ximian.com>
211
212         * TextWriter.cs (write): added check for null
213
214 2002-03-28  Dan Lewis  <dihlewis@yahoo.co.uk>
215
216         * Directory.cs: Throws DirectoryNotFoundException.
217         * MonoIO.cs: Fixed to work around enum problem.
218
219 2002-03-27  Dan Lewis  <dihlewis@yahoo.co.uk>
220
221         * StreamReader.cs: Implemented ReadLine() and ReadEnd().
222
223 2002-03-27  Dan Lewis  <dihlewis@yahoo.co.uk>
224
225         * Directory.cs, File.cs, FileSystemInfo.cs, FileInfo.cs,
226         DirectoryInfo.cs, Path.cs: Modified to use MonoIO class instead of
227         wrapper and PAL classes.
228
229         * MonoIO.cs, MonoIOStat.cs, MonoIOError.cs: Added.
230
231 2002-03-25  Mike Kestner <mkestner@speakeasy.net>
232
233         * MemoryStream.cs (Read): Fixed bug in exception throw.
234
235 2002-03-24  Mike Kestner <mkestner@speakeasy.net>
236
237         * StreamReader.cs (ReadBuffer): Fix buffer merging bugs.
238
239 2002-03-23  Martin Baulig  <martin@gnome.org>
240
241         * StreamReader.cs: Always do buffered reading, use 4k blocks.
242         (Read (char[], int, int)): Implemented.
243         (DiscardBufferedData): Implemented.
244
245 2002-03-21  Mike Kestner <mkestner@speakeasy.net>
246
247         * StreamReader.cs : Fill out, add buffering, and use encoding.
248
249 2002-03-19  Martin Baulig  <martin@gnome.org>
250
251         * StreamWriter.cs (StreamWriter (string)): The default is to override
252         the file, not to append to it.
253         (StreamWriter (string path, bool append)): When appending, seek to the
254         end of the file, otherwise truncate the file to zero length.
255         (Dispose (bool)): Close the internalStream.
256         (Flush): Flush the interalStream.
257         (Write (char[], int, int)): Flush the internalStream in auto-flush-mode.
258
259 2002-03-19  Dan Lewis <dihlewis@yahoo.co.uk>
260
261         * FileStream.cs: Flush buffer before FileSetLength.
262
263 2002-02-28  Miguel de Icaza  <miguel@ximian.com>
264
265         * Stream.cs (NullStream): Do not track position, this beast does
266         nothing in practice.
267
268 2002-03-15  Dan Lewis <dihlewis@yahoo.co.uk>
269
270         * SearchPattern.cs: New class. Glob matching code for Directory.
271         * Directory.cs: Changed to use SearchPattern instead of mono_glob_*()
272
273 2002/03/15 Nick Drochak <ndrochak@gol.com>
274
275         * DirectoryInfo.cs: Fixed the overloaded GetDirectories and GetFiles.
276         This code seemed to be copied from somewhere, and it was close,
277         but didn't match the docs.  This was the last bit needed to get
278         NAnt to compile with our class libs.
279
280 2002-03-12  Duncan Mak  <duncan@ximian.com>
281
282         * EndOfStreamException.cs:
283         * FileLoadException.cs:
284         * FileNotFoundException.cs:
285         * PathTooLongException.cs: Changed the base classes to IOException
286         instead of SystemException.
287
288         * IOException.cs: Added missing constructors.
289         
290 2002-03-07  Nick Drochak  <ndrochak@gol.com>
291
292         * FileMode.cs: Docs don't say this should be explicitly derived from
293         int, so just make it a normal Enum.
294
295 2002-03-02  Jason Diamond  <jason@injektilo.org>
296
297         * StringReader.cs: Fixed off-by-one error in Peek() and Read().
298
299 2002-02-12  Nick Drochak  <ndrochak@gol.com>
300
301         * PathTooLongException.cs: put it in the correct namespace
302         * EndOfStreamException.cs: put it in the correct namespace
303
304 Thu Jan 31 17:32:32 CET 2002 Paolo Molaro <lupus@ximian.com>
305
306         * Directory.cs: handle opendir() return NULL and absolute filenames.
307
308 2002-01-31  Duncan Mak  <duncan@ximian.com>
309
310         * FileLoadException.cs:
311         * FileNotFoundException: Added missing bits for serialization.
312
313 Thu Jan 24 17:42:54 CET 2002 Paolo Molaro <lupus@ximian.com>
314
315         * Directory.cs: allow directories in GetFiles() mask.
316
317 2002-01-23  Miguel de Icaza  <miguel@ximian.com>
318
319         * FileInfo.c (CopyTo, MoveTo): Implement.
320
321         * FileStream.cs: Add argument checking to the constructor.
322
323         * File.cs: Rewrote most of the file.  Implement Copy, Open, Create,
324         OpenText, OpenWrite, Move.  Made pending methods flagged as MonoTODO. 
325         
326         * Directory.cs (Delete): reimplement without using DirectoryInfo.
327         (Delete): Implement the recursive version.
328         (GetCreationTime, GetLastWriteTime, GetLastAccessTime): Implement.
329         (Move): Reimplement.
330         (getNames): dead code removal.
331
332         * Path.cs: define an internal DirectorySeparatorStr that we use in
333         a few spots.
334
335         * Wrapper.cs: Updated to new version.
336         
337         * DirectoryInfo (Delete): Implement using the Directory API.
338
339         * DirectoryInfo.cs (GetFiles, GetDirectories, GetFileSystemInfos,
340         Delete, Create, Parent, Exists, MoveTo): Implement. 
341
342         * Directory.cs (GetListing): implement new utility function.
343         (GetDirectories): Implement.
344         (GetFileSystemEntries): Implement.
345         (GetFiles): Implement.
346
347         * CheckArgument.cs (Path): Do not allow null by default.
348
349 Tue Jan 22 22:53:23 CET 2002 Paolo Molaro <lupus@ximian.com>
350
351         * DirectoryInfo.cs, FileInfo.cs: do not use Debug from the system
352         assembly in corlib.
353
354 2002-01-20 Nick Drochak  <ndrochak@gol.com>
355
356         * SeekOrigin.cs: Added Serializable attribute.
357
358 2002-01-19  Duncan Mak  <duncan@ximian.com>
359
360         * PathTooLongException.cs: 
361         * EndOfStreamException.cs: Added to CVS.
362
363 Thu Jan 10 12:06:46 MST 2002 Matt Kimball <matt@kimball.net>
364
365         * BufferedStream.cs: Initial implemenation.  The synchronous
366         methods for both reading and writing are implemented.  I'll do the
367         asynchronous methods in a bit.
368         
369 Wed Jan  9 16:04:39 MST 2002 Matt Kimball <matt@kimball.net>
370
371         * BinaryWriter.cs: Initial implementation.  And it's all there.
372
373         * BinaryReader.cs: The constructor now uses the passed in encoding,
374         not UTF8 always.
375
376 Wed Jan  9 13:54:28 MST 2002 Matt Kimball <matt@kimbal.net>
377
378         * BinaryReader.cs: Initial implementation.  I think it's complete.
379
380 2002-01-04  Ravi Pratap  <ravi@ximian.com>
381
382         * CheckArgument.cs, CheckPermission.cs, Directory.cs: MonoTODO
383         attribute decorations.
384
385         * DirectoryInfo.cs, File.cs, FileInfo.cs, FileSystemInfo.cs,
386         Path.cs, TextReader.cs, TextWriter.cs : Ditto.
387
388         * FileLoadException.cs, FileNotFoundException.cs, StreamReader.cs: 
389         Ditto.
390
391 2001-12-11  Dick Porter  <dick@ximian.com>
392
393         * FileStream.cs: Use handles rather than casting file descriptors.
394         Added Handle property.
395
396 Wed Nov 14 16:47:47 CET 2001 Paolo Molaro <lupus@ximian.com>
397
398         * CheckPermission.cs: disable ModeAccess() code: it's wrong.
399         * FileStream.cs: only trow an exception if the read failed in ReadByte().
400         * StreamReader.cs: implement Peek and Read.
401         * TextWriter.cs: CLSCompliant updates.
402
403 2001-11-10  Sean MacIsaac  <macisaac@ximian.com>
404
405         * FileNotFoundException.cs: Added some constructors
406
407         * Path.cs (GetFullPath): Fixed implementation
408
409 Fri Nov 2 18:27:58 CET 2001 Paolo Molaro <lupus@ximian.com>
410
411         * DirectoryNotFoundException.cs: implemented.
412
413 Tue Sep 25 18:54:06 CEST 2001 Paolo Molaro <lupus@ximian.com>
414
415         * File.cs: fix signatures of the Open() and OpenRead() functions
416         (they are static).
417
418 Thu Sep 13 18:04:23 CEST 2001 Paolo Molaro <lupus@ximian.com>
419
420         * FileLoadException.cs, FileNotFoundException.cs: added.
421
422 2001-08-28  Dietmar Maurer  <dietmar@ximian.com>
423
424         * TextReader.cs: implemented the Read method
425
426         * StreamReader.cs: impl. stubs
427
428         * StreamWriter.cs: impl.
429
430         * TextWriter.cs: implemented Write and WriteLine methods
431
432 Sun Aug 26 23:01:41 CEST 2001 Paolo Molaro <lupus@ximian.com>
433
434         * FileAccess.cs, FileMode.cs: change values to be compatible with
435         the ms ones.
436         
437 Sun Aug 26 11:47:56 CEST 2001 Paolo Molaro <lupus@ximian.com>
438
439         * IOException.cs: Implemented System.IO.Exception.
440
441 2001-07-18  Michael Lambert <michaellambert@email.com>
442
443         *SeekOrigin.cs.cs, FileShare.cs, FileMode.cs, FileAccess.cs: Add.
444
445 2001-07-19  Marcin Szczepanski <marcins@zipworld.com.au>
446
447         * System.IO.MemoryStream.cs: Added.  Had quite a few cases of
448         "LAMESPEC", but the tests work against the MS implementation so
449         the major functions are right (ie. Read/Write/Seek).  Some more
450         tests required for the various constructors and exceptions.
451
452 2001-07-16  Marcin Szczepanski <marcins@zipworld.com.au>
453
454         * StringReader.cs, StringWriter.cs, TextReader.cs, TextWriter.cs:
455         New class implemenations.
456
457         * StringReaderTest.cs, StringWriterTest.cs: Test suite for the above.
458