2002-05-08 Nick Drochak <ndrochak@gol.com>
[mono.git] / mcs / class / corlib / System.IO / ChangeLog
1 2002-05-08  Nick Drochak  <ndrochak@gol.com>
2
3         * StreamWriter.cs: Add paramter check to constructors and throw
4         exceptions where appropriate.
5
6 Tue May 7 11:47:46 CEST 2002 Paolo Molaro <lupus@ximian.com>
7
8         * StreamReader.cs: return the number of chars read even if we diddn't
9         fill the whole buffer (makes Sergey's ilasm work with mono).
10
11 2002-05-07  Mike Gray     <mikeg_us@hotmail.com> 
12
13         * FileInfo.cs (Create): Implement missing method.
14
15 2002-05-07  Mike Gray     <mikeg_us@hotmail.com>
16
17         * File.cs: Implemented CreateText method, and fixed dst compares
18         to compare against "" instead of null twice.
19
20 2002-05-05  Nick Drochak  <ndrochak@gol.com>
21
22         * StreamReader.cs: Throw exceptions where needed. Changed Null field to
23         use new internal class since null cannot be passed to constructor 
24         anymore. Also, fix a coule of small bugs.
25
26 2002-05-03  Nick Drochak  <ndrochak@gol.com>
27
28         * MemoryStream.cs: Refrain from allocating array until the space is
29         really needed. This fixes a bug in the Length property when the
30         constructor without the byte array is used.
31
32 2002-05-01  Duncan Mak  <duncan@ximian.com>
33
34         * DirectoryNotFoundException.cs (constructor): Added missing
35         serialization constructor.
36
37 2002-04-30  Duncan Mak  <duncan@ximian.com>
38
39         * FileLoadException.cs (constructors): Added missing (string,
40         string) ctor, as well as (string, string, Exception) ctor.
41
42         (Message): Added more info to the error message
43
44         (ToString): Added. We'll need to add the StackTrace stuff when
45         that works.
46
47         * FileShare.cs: Add a missing field, Inheritable.
48         
49         * TextReader.cs: Renamed Synchronised method to Synchronized.
50
51         * TextWriter.cs: Renamed Synchronised method to Synchronized.
52         Renamed protected member coreNewLine to CoreNewLine.
53
54 2002-04-30  Sergey Chaban  <serge@wildwestsoftware.com>
55
56         * BinaryReader.cs: Allocate buffer before its first use.
57         Handle end of stream properly. Methods to read native types
58         (ReadInt* etc.) are little-endian (see Compact Framework docs).
59
60         * BinaryWriter.cs: Store data in little-endian format.
61         Use internal buffer for conversions.
62
63 2002-03-31  Dick Porter  <dick@ximian.com>
64
65         * Directory.cs: Strip out "." and ".." from returned list
66
67         * FileAttributes.cs: Get the right enum values
68
69 2002-03-28  Dietmar Maurer  <dietmar@ximian.com>
70
71         * TextWriter.cs (write): added check for null
72
73 2002-03-28  Dan Lewis  <dihlewis@yahoo.co.uk>
74
75         * Directory.cs: Throws DirectoryNotFoundException.
76         * MonoIO.cs: Fixed to work around enum problem.
77
78 2002-03-27  Dan Lewis  <dihlewis@yahoo.co.uk>
79
80         * StreamReader.cs: Implemented ReadLine() and ReadEnd().
81
82 2002-03-27  Dan Lewis  <dihlewis@yahoo.co.uk>
83
84         * Directory.cs, File.cs, FileSystemInfo.cs, FileInfo.cs,
85         DirectoryInfo.cs, Path.cs: Modified to use MonoIO class instead of
86         wrapper and PAL classes.
87
88         * MonoIO.cs, MonoIOStat.cs, MonoIOError.cs: Added.
89
90 2002-03-25  Mike Kestner <mkestner@speakeasy.net>
91
92         * MemoryStream.cs (Read): Fixed bug in exception throw.
93
94 2002-03-24  Mike Kestner <mkestner@speakeasy.net>
95
96         * StreamReader.cs (ReadBuffer): Fix buffer merging bugs.
97
98 2002-03-23  Martin Baulig  <martin@gnome.org>
99
100         * StreamReader.cs: Always do buffered reading, use 4k blocks.
101         (Read (char[], int, int)): Implemented.
102         (DiscardBufferedData): Implemented.
103
104 2002-03-21  Mike Kestner <mkestner@speakeasy.net>
105
106         * StreamReader.cs : Fill out, add buffering, and use encoding.
107
108 2002-03-19  Martin Baulig  <martin@gnome.org>
109
110         * StreamWriter.cs (StreamWriter (string)): The default is to override
111         the file, not to append to it.
112         (StreamWriter (string path, bool append)): When appending, seek to the
113         end of the file, otherwise truncate the file to zero length.
114         (Dispose (bool)): Close the internalStream.
115         (Flush): Flush the interalStream.
116         (Write (char[], int, int)): Flush the internalStream in auto-flush-mode.
117
118 2002-03-19  Dan Lewis <dihlewis@yahoo.co.uk>
119
120         * FileStream.cs: Flush buffer before FileSetLength.
121
122 2002-02-28  Miguel de Icaza  <miguel@ximian.com>
123
124         * Stream.cs (NullStream): Do not track position, this beast does
125         nothing in practice.
126
127 2002-03-15  Dan Lewis <dihlewis@yahoo.co.uk>
128
129         * SearchPattern.cs: New class. Glob matching code for Directory.
130         * Directory.cs: Changed to use SearchPattern instead of mono_glob_*()
131
132 2002/03/15 Nick Drochak <ndrochak@gol.com>
133
134         * DirectoryInfo.cs: Fixed the overloaded GetDirectories and GetFiles.
135         This code seemed to be copied from somewhere, and it was close,
136         but didn't match the docs.  This was the last bit needed to get
137         NAnt to compile with our class libs.
138
139 2002-03-12  Duncan Mak  <duncan@ximian.com>
140
141         * EndOfStreamException.cs:
142         * FileLoadException.cs:
143         * FileNotFoundException.cs:
144         * PathTooLongException.cs: Changed the base classes to IOException
145         instead of SystemException.
146
147         * IOException.cs: Added missing constructors.
148         
149 2002-03-07  Nick Drochak  <ndrochak@gol.com>
150
151         * FileMode.cs: Docs don't say this should be explicitly derived from
152         int, so just make it a normal Enum.
153
154 2002-03-02  Jason Diamond  <jason@injektilo.org>
155
156         * StringReader.cs: Fixed off-by-one error in Peek() and Read().
157
158 2002-02-12  Nick Drochak  <ndrochak@gol.com>
159
160         * PathTooLongException.cs: put it in the correct namespace
161         * EndOfStreamException.cs: put it in the correct namespace
162
163 Thu Jan 31 17:32:32 CET 2002 Paolo Molaro <lupus@ximian.com>
164
165         * Directory.cs: handle opendir() return NULL and absolute filenames.
166
167 2002-01-31  Duncan Mak  <duncan@ximian.com>
168
169         * FileLoadException.cs:
170         * FileNotFoundException: Added missing bits for serialization.
171
172 Thu Jan 24 17:42:54 CET 2002 Paolo Molaro <lupus@ximian.com>
173
174         * Directory.cs: allow directories in GetFiles() mask.
175
176 2002-01-23  Miguel de Icaza  <miguel@ximian.com>
177
178         * FileInfo.c (CopyTo, MoveTo): Implement.
179
180         * FileStream.cs: Add argument checking to the constructor.
181
182         * File.cs: Rewrote most of the file.  Implement Copy, Open, Create,
183         OpenText, OpenWrite, Move.  Made pending methods flagged as MonoTODO. 
184         
185         * Directory.cs (Delete): reimplement without using DirectoryInfo.
186         (Delete): Implement the recursive version.
187         (GetCreationTime, GetLastWriteTime, GetLastAccessTime): Implement.
188         (Move): Reimplement.
189         (getNames): dead code removal.
190
191         * Path.cs: define an internal DirectorySeparatorStr that we use in
192         a few spots.
193
194         * Wrapper.cs: Updated to new version.
195         
196         * DirectoryInfo (Delete): Implement using the Directory API.
197
198         * DirectoryInfo.cs (GetFiles, GetDirectories, GetFileSystemInfos,
199         Delete, Create, Parent, Exists, MoveTo): Implement. 
200
201         * Directory.cs (GetListing): implement new utility function.
202         (GetDirectories): Implement.
203         (GetFileSystemEntries): Implement.
204         (GetFiles): Implement.
205
206         * CheckArgument.cs (Path): Do not allow null by default.
207
208 Tue Jan 22 22:53:23 CET 2002 Paolo Molaro <lupus@ximian.com>
209
210         * DirectoryInfo.cs, FileInfo.cs: do not use Debug from the system
211         assembly in corlib.
212
213 2002-01-20 Nick Drochak  <ndrochak@gol.com>
214
215         * SeekOrigin.cs: Added Serializable attribute.
216
217 2002-01-19  Duncan Mak  <duncan@ximian.com>
218
219         * PathTooLongException.cs: 
220         * EndOfStreamException.cs: Added to CVS.
221
222 Thu Jan 10 12:06:46 MST 2002 Matt Kimball <matt@kimball.net>
223
224         * BufferedStream.cs: Initial implemenation.  The synchronous
225         methods for both reading and writing are implemented.  I'll do the
226         asynchronous methods in a bit.
227         
228 Wed Jan  9 16:04:39 MST 2002 Matt Kimball <matt@kimball.net>
229
230         * BinaryWriter.cs: Initial implementation.  And it's all there.
231
232         * BinaryReader.cs: The constructor now uses the passed in encoding,
233         not UTF8 always.
234
235 Wed Jan  9 13:54:28 MST 2002 Matt Kimball <matt@kimbal.net>
236
237         * BinaryReader.cs: Initial implementation.  I think it's complete.
238
239 2002-01-04  Ravi Pratap  <ravi@ximian.com>
240
241         * CheckArgument.cs, CheckPermission.cs, Directory.cs: MonoTODO
242         attribute decorations.
243
244         * DirectoryInfo.cs, File.cs, FileInfo.cs, FileSystemInfo.cs,
245         Path.cs, TextReader.cs, TextWriter.cs : Ditto.
246
247         * FileLoadException.cs, FileNotFoundException.cs, StreamReader.cs: 
248         Ditto.
249
250 2001-12-11  Dick Porter  <dick@ximian.com>
251
252         * FileStream.cs: Use handles rather than casting file descriptors.
253         Added Handle property.
254
255 Wed Nov 14 16:47:47 CET 2001 Paolo Molaro <lupus@ximian.com>
256
257         * CheckPermission.cs: disable ModeAccess() code: it's wrong.
258         * FileStream.cs: only trow an exception if the read failed in ReadByte().
259         * StreamReader.cs: implement Peek and Read.
260         * TextWriter.cs: CLSCompliant updates.
261
262 2001-11-10  Sean MacIsaac  <macisaac@ximian.com>
263
264         * FileNotFoundException.cs: Added some constructors
265
266         * Path.cs (GetFullPath): Fixed implementation
267
268 Fri Nov 2 18:27:58 CET 2001 Paolo Molaro <lupus@ximian.com>
269
270         * DirectoryNotFoundException.cs: implemented.
271
272 Tue Sep 25 18:54:06 CEST 2001 Paolo Molaro <lupus@ximian.com>
273
274         * File.cs: fix signatures of the Open() and OpenRead() functions
275         (they are static).
276
277 Thu Sep 13 18:04:23 CEST 2001 Paolo Molaro <lupus@ximian.com>
278
279         * FileLoadException.cs, FileNotFoundException.cs: added.
280
281 2001-08-28  Dietmar Maurer  <dietmar@ximian.com>
282
283         * TextReader.cs: implemented the Read method
284
285         * StreamReader.cs: impl. stubs
286
287         * StreamWriter.cs: impl.
288
289         * TextWriter.cs: implemented Write and WriteLine methods
290
291 Sun Aug 26 23:01:41 CEST 2001 Paolo Molaro <lupus@ximian.com>
292
293         * FileAccess.cs, FileMode.cs: change values to be compatible with
294         the ms ones.
295         
296 Sun Aug 26 11:47:56 CEST 2001 Paolo Molaro <lupus@ximian.com>
297
298         * IOException.cs: Implemented System.IO.Exception.
299
300 2001-07-18  Michael Lambert <michaellambert@email.com>
301
302         *SeekOrigin.cs.cs, FileShare.cs, FileMode.cs, FileAccess.cs: Add.
303
304 2001-07-19  Marcin Szczepanski <marcins@zipworld.com.au>
305
306         * System.IO.MemoryStream.cs: Added.  Had quite a few cases of
307         "LAMESPEC", but the tests work against the MS implementation so
308         the major functions are right (ie. Read/Write/Seek).  Some more
309         tests required for the various constructors and exceptions.
310
311 2001-07-16  Marcin Szczepanski <marcins@zipworld.com.au>
312
313         * StringReader.cs, StringWriter.cs, TextReader.cs, TextWriter.cs:
314         New class implemenations.
315
316         * StringReaderTest.cs, StringWriterTest.cs: Test suite for the above.
317