1 2004-03-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3 * MonoIO.cs: added case for ERROR_FILENAME_EXCED_RANGE.
5 2004-02-25 Jackson Harper <jackson@ximian.com>
7 * File.cs: Report the filename when deleting a file fails. Patch
8 by Gert Driesen. Fixes bug #54855.
10 2004-02-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12 * FileStream.cs: remove dangling ^Ms.
14 2004-02-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
16 * FileStream.cs: (.ctor) Path.DirectoryName can be empty and make
17 Path.GetFullPath crash. Fixed it.
19 * MonoIO.cs: fixed typo.
21 2004-02-13 Jackson Harper <jackson@ximian.com>
23 * FileStream.cs: Throw some more exceptions for invalid
24 params. Fixes some unit test failures.
25 * BufferedStream.cs: If the stream is closed (can't read from it
26 or write to it) throw an ObjectDisposedException.
28 Tue Jan 20 23:10:22 CET 2004 Paolo Molaro <lupus@ximian.com>
30 * StreamWriter.cs, TextWriter.cs: comply with the documented
31 behaviour and use a decode buffer to improve performance.
33 2004-01-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
35 * Path.cs: now Path.GetFullPath ("/") returns "/" instead of "".
37 2004-01-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
39 * Path.cs: add the trailing directory separator only for volumes.
42 2004-01-19 Zoltan Varga <vargaz@freemail.hu>
44 * IntPtrStream.cs: Fix build bustage.
46 * IntPtrStream.cs: Add a 'Closed' event. Also throw exceptions after
49 2004-01-18 Ben Maurer <bmaurer@users.sourceforge.net>
51 * FileStream.cs: Locking from bug #32344 removed. This is not
52 necessary because the correct fix was actually in the console.
53 This fixes bug #53026. Miguel de Icaza reviewed/approved this
56 2004-01-14 Zoltan Varga <vargaz@freemail.hu>
58 * FileStream.cs (.ctor): Avoid allocating a large buffer when reading
61 2004-01-10 Atsushi Enomoto <atsushi@ximian.com>
63 * Path.cs : GetDirectoryName ("c:\readme.txt") should return "c:\"
64 instead of "c:" . This fixed bug #52735.
66 2004-01-04 Nick Drochak <ndrochak@gol.com>
68 * Path.cs: Remove defined but unused variable, and also got rid of
69 some unreachable code. Eliminates some build warnings.
71 2003-12-28 Ben Maurer <bmaurer@users.sourceforge.net>
73 * BinaryWriter.cs: use one encoding buffer for writing
74 strings rather than allocting one/string. HUGE perf
75 boost when writing many strings.
77 2003-12-25 Atsushi Enomoto <atsushi@ximian.com>
79 * Path.cs : Fixed GetFullPath() (and CanonicalizePath()),
80 HasExtension(), GetPathRoot() and IsPathRooted() to fit with tests.
82 2003-12-22 Bernie Solomon <bernard@ugsolutions.com>
84 * FileStream.cs: (.ctor) do not set handle
85 in object until after it is validated via
86 GetFileType so finalizer doesn't see bad handles and
87 initialize this.handle to InvalidHandle
89 2003-12-19 Bernie Solomon <bernard@ugsolutions.com>
91 * MonoIO.cs: SetFileTime() Failed Open returns InvalidHandle
94 2003-12-17 Atsushi Enomoto <atsushi@ximian.com>
96 * Directory.cs : SetCurrentDirectory() should raise errors for
97 some kind of arguments.
99 2003-12-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
101 * Path.cs: GetTempPath () ends with DirectorySeparatorChar. Fixes bug
104 2003-12-06 Ravindra <rkumar@novell.com>
105 *MonoIO.cs: Added a new exception case. It is thrown
106 when a directory creation is attempted with a name that
107 is already used by an existing file.
109 2003-11-28 Dick Porter <dick@ximian.com>
111 * Path.cs: Use the char form of LastIndexOf, so that the
112 comparison is done with the Invariant culture.
114 2003-11-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
116 * Directory.cs: provide the path when getting the IOException.
118 2003-11-18 John Luke <jluke@cfl.rr.com>
121 (PathLength): fix recursion found by JonK
123 2003-11-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
126 (GetCurrentDirectory):
127 (SetCurrentDirectory): moved here from Environment. Handle error cases.
129 * MonoIO.cs: add path to the default error message.
131 2003-11-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
133 * StringReader.cs: fixed ReadLine for some cases where there are mixed
134 '\r' and '\n'. Closes bug #51020.
136 2003-11-14 Ben Maurer <bmaurer@users.sourceforge.net>
138 * MemoryStream.cs (.ctor): We need to check if buffer is null
139 before we get the Length of it.
141 2003-11-14 Miguel de Icaza <miguel@ximian.com>
143 * StreamReader.cs, TextReader, StreamReader (Read): Add [Out]
145 2003-11-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
147 * Directory.cs: allow directory names without wildcards in the pattern.
150 * SearchPattern.cs: made InvalidChars and WildcardChars internal.
152 2003-11-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
154 * FileStream.cs: use the argument name when throwing exception.
158 * TextReader.cs: added [In] attribute for the array in Read.
160 2003-11-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
162 * DirectoryInfo.cs: fixed ToString. Closes bug #50842.
164 2003-11-12 Miguel de Icaza <miguel@ximian.com>
166 * Directory.cs: Adjust for missing PlatformID.Unix.
168 2003-10-28 Miguel de Icaza <miguel@ximian.com>
170 * StreamReader.cs: Add checks for disposed stream from bug report
171 #48696 (Patrik Reali)
173 * TextReader.cs (Read): Return the total number of bytes read,
174 patch from Patrik Realli.
176 2003-10-20 Miguel de Icaza <miguel@ximian.com>
178 * FileStream.cs public FileStream (string name, FileMode mode)
179 constructor: If we pass FileMode.Append, we can not pass
180 FileAccess.ReadWrite. This fixes bug 44959
182 2003-09-26 Miguel de Icaza <miguel@ximian.com>
184 * BufferedStream.cs (Write): Use CanWrite in Write. Patch from
185 Francisco Figueiredo Jr.
187 2003-09-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
189 * BinaryReader.cs: return the correct number of bytes read when there
190 are some bytes from peeking.
192 2003-09-11 Lluis Sanchez Gual <lluis@ximian.com>
194 * BufferedStream.cs, FileStream.cs, MemoryStream.cs, Stream.cs:
195 Added [In,Out] attributes to Read method.
197 2003-08-05 Martin Baulig <martin@ximian.com>
199 * StreamReader.cs (DiscardBufferedData): Do the same like on the
200 ms runtime: just discard the buffered data, but don't modify the
203 2003-08-04 Martin Baulig <martin@ximian.com>
205 * StreamReader.cs (DiscardBufferedData): Implemented.
207 2003-07-29 Miguel de Icaza <miguel@ximian.com>
209 * IntPtrStream.cs (Read): Use correct offset here; Change the
210 code to use a byte* instead of an IntPtr to reduce the number of
213 (Read): Use Marshal.Copy instead of the now
216 (IntPtrStream): New stream implementation, it maps to a region in
219 2003-07-23 Duncan Mak <duncan@ximian.com>
221 * StreamReader.cs (Initialize): This method is not exposed in the
222 API, mark as internal.
224 Fri Jul 18 14:42:42 CEST 2003 Paolo Molaro <lupus@ximian.com>
226 * MonoIO.cs: 64bit fix from Bernie Solomon <bernard@ugsolutions.com>.
228 2003-07-16 Dick Porter <dick@ximian.com>
230 * FileInfo.cs: Update path info when a file is moved. Patch by
231 John Luke <jluke@cfl.rr.com>, fixes bug 44253.
233 2003-07-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
235 * MemoryStream.cs: fixed bug #46060. Thanks to Carlos Barcenilla.
237 2003-06-30 Zoltan Varga <vargaz@freemail.hu>
239 * FileStream.cs (Dispose): Flush the buffer even if we don't own the
241 * FileStream.cs: Add a new constructor parameter to turn off buffering.
242 This is used by the Console.OpenStandard...() methods. Also fix
243 argument checking in InitBuffer(), so a zero buffer size is also
246 2003-06-27 Dietmar Maurer <dietmar@ximian.com>
248 * Stream.cs: use async.delegate invoke
250 2003-06-18 Nick Drochak <ndrochak@gol.com>
252 * FileSystemInfo.cs: Refresh cache when changeing file times.
254 2003-06-11 Zoltan Varga <vargaz@freemail.hu>
256 * FileStream.cs: Fix errors in previous checkins:
257 (Write): Only take the shortcut route if the data is longer than the
259 (Write): Flush the buffer before writing out the new data
260 (Write): Flush the buffer after writing out a segment since otherwise
261 we will go into an infinite loop.
262 (FlushBuffer): Remove my last change since it was clearly wrong.
263 (Seek): Run FlushBuffer () after the in-buffer seek optimization.
264 (Seek): Only use the in-buffer optimization if the buffer is not
266 (Length): Call FlushBuffer () since buffer data might change the size
269 2003-06-09 Ville Palo <vi64pa@kolumbus.fi>
272 - removed unusefull bugfix (DirectoryNotFoundException)
275 2003-06-09 Ville Palo <vi64pa@kolumbus.fi>
277 * FileStream.cs: Check buffer size before append/read -exceptios
279 2003-06-09 Ville Palo <vi64pa@kolumbus.fi>
281 * FileStream.cs: Check DirectoryNotFound before FileNotFound.
283 2003-06-09 Ville Palo <vi64pa@kolumbus.fi>
285 * FileStream.cs: Does not anymore flush while writing
287 2003-06-02 Nick Drochak <ndrochak@gol.com>
289 * FileInfo.cs (MoveTo): Throw exceptions when dest exists, and check
292 2003-05-27 Lluis Sanchez Gual <lluis@ximian.com>
294 * BinaryReader.cs: Stream don't need to be seekable to use PeekChar.
296 2003-05-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
298 * Path.cs: fixed bug #42631.
300 2003-05-22 Zoltan Varga <vargaz@freemail.hu>
302 * File.cs (Move): Allow moving of directories.
303 Fix 'destination is a directory' test.
305 2003-05-21 Ben Maurer <bmaurer@users.sourceforge.net>
307 * StringWriter.cs: Fixed bug #43431: "StringWriter
308 .ctor(CultureInfo) does not create a new StringBuilder ()"
310 2003-05-11 Zoltan Varga <vargaz@freemail.hu>
312 * FileStream.cs (FlushBuffer): After a flush, the buffer is
313 advanced by buf_offset bytes, not buf_length bytes.
315 2003-05-16 Dick Porter <dick@ximian.com>
317 * MonoIO.cs: Implement GetTempPath
319 2003-05-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
321 * DirectoryInfo.cs: fixed bug #42991.
323 (CanonicalizePath): store the value of the trimmed input string. Make it
324 work with paths such as "/home/xxx/.".
326 2003-05-08 Ben Maurer <bmaurer@users.sourceforge.net>
328 (CanonicalizePath) Fixed bug #42631, which duplicated the
329 root part of the path under Windows.
331 2003-05-08 Ville Palo <vi64pa@kolumbus.fi>
333 * FileSystemInfo.cs: Added 1.1 properties LastAccessTimeUtc,
334 LastWriteTimeUtc and CreationTimeUtc
336 2003-05-07 Ben Maurer <bmaurer@users.sourceforge.net>
338 (GetPathRoot) Added support for UNC paths.
339 (CanonicalizePath) Added optimizations per Miguel's requests.
341 2003-05-06 Ville Palo <vi64pa@kolumbus.fi>
344 - Removed unusefull code.
345 - Added ObjectDisposedException to Position
346 - Dont flush if stream is allready closed.
347 - Flush throws also ObjectDisposedException.
349 - GetFileSystemEtries: ArgumentNullException if pattern is null
350 * DirectoryInfo.cs: Fixed little MoveTo () bug.
352 - Exists: If file does not exists when instance is created the
353 value of the Exists property does not change even if file is created
355 - Delete: If path is a directory UnauthorizedException is thrown.
356 - CopyTo: Now we can overwrite file if wanted.
358 - GetFullPath: Now throws exception when path is " ".
360 2003-05-04 Ben Maurer <bmaurer@users.sourceforge.net>
361 * Directory.cs (GetLogicalDrives) Marked as MonoTODO
362 because we need to implement the method on Windows.
364 (CanonicalizePath) Added new function to get
365 rid of . and .. in path names. Need to figure out what
366 other functions should call this.
367 (GetFullPath) Added call to the above function.
369 2003-05-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
372 (.ctor): fixed parameters passed to FileNotFoundException.
374 2003-04-25 Dietmar Maurer <dietmar@ximian.com>
376 * BinaryReader.cs (Read): make sure the buffer is big enough (fix
379 2003-04-24 Pedro Martinez Julia <yoros@wanadoo.es>
381 * BufferedStream.cs: Test if it's possible to seek in a Stream
382 before access to Position. This prevents the exception thrown when
383 the stream is System.Net.Sockets.NetworkStream.
385 2003-04-22 Ville Palo <vi64pa@kolumbus.fi>
387 * Directory.cs: clean up --> performance improvment. Some exceptions
388 are now checked in File.cs.
389 * File.cs: Implemented Get/SetXXXTimeUtc () methods. Some bugfixes.
391 2003-04-21 Ville Palo <vi64pa@kolumbus.fi>
393 * Directory.cs: lots of fixes.
394 - Added GetXXXtimeUtc () (v1.1) methods.
395 - Added SetXXXtimeUtc () (v1.1) methods.
397 2003-04-20 Igor Nosyryev <nosyryev@attbi.com>
399 * StringReader.cs (Read): Increment nextChar by charsToRead
400 instead of count, that will guarantee that the next time the
401 method is called, it will return 0 on an empty string rather than
402 throwing an exception
404 2003-04-19 Ville Palo <vi64pa@kolumbus.fi>
406 * BufferedStream.cs: Some fixes, mostly throwing exceptions.
407 * MemoryStream.cs: Changed the order of exception checking
408 * StringReader.cs: little clean up
410 2003-04-14 Ville Palo <vi64pa@kolumbus.fi>
412 * BinaryWriter.cs: Fixed decimal writing and lots of
413 ObjectDisposedExceptions added.
415 2003-04-13 Ville Palo <vi64pa@kolumbus.fi>
417 * BinaryReader.cs: Fix to ReadDecimal() method.
419 2003-04-13 Ville Palo <vi64pa@kolumbus.fi>
421 * StringReader.cs: Added some ObjectDisposedExceptions.
422 * StringWriter.cs: Added some ObjectDisposedExceptions.
423 * BinaryReader.cs: Added some ObjectDisposedExceptions.
425 2003-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
427 * FileStream.cs: fixed the windows build. This is an mcs bug. I'll
430 2003-04-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
432 * FileStream.cs: fixed bug #40182 and made more unit test pass.
434 2003-04-11 Ville Palo <vi64pa@kolumbus.fi>
436 * FileStream.cs: Added new methods Lock () and Unlock ()
438 2003-04-11 Ville Palo <vi64pa@kolumbus.fi>
440 * StringReader.cs: Throws exceptions if constructor parameter is null.
442 2003-04-11 Ville Palo <vi64pa@kolumbus.fi>
444 * StringWriter.cs: Now throws an exception if StringBuilder parameter
447 2003-04-05 Miguel de Icaza <miguel@ximian.com>
449 * TextWriter.cs: Implemented Synchronized method.
451 * TextReader.cs: Implemented Synchronized method.
453 2003-04-04 Miguel de Icaza <miguel@ximian.com>
455 * FileStream.cs (Read, ReadByte, Seek): throw
456 ObjectDisposedException if the handle has been released.
458 (Read): Throw exceptions specified in the spec.
460 (Read, Write, ReadSegment, WriteSegment): There is no requirement for any
461 instance methods of FileStream to be thread safe, so remove all
462 the calls to lock on the object
464 2003-03-31 Nick Drochak <ndrochak@gol.com>
466 * Path.cs (GetDirectoryName): Throw proper execption when path is empty.
468 2003-03-20 Lluis Sanchez Gual <lluis@ideary.com>
470 * FileNotFoundException.cs: fixed serialization bug.
472 2003-03-18 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
474 * StringWriter.cs : don't release internalString on Dispose().
476 2003-03-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
478 * StreamReader.cs: fixed bug #39280.
480 2003-03-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
482 * Directory.cs: readded mkdir -p behavior. Thanks to kiwnix for
485 2003-03-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
487 * MemoryStream.cs: general fixes and reformatted. Passes all tests in
488 the new MemoryStreamTest.
490 2003-03-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
492 * MemoryStream.cs: undo my bogus fix in ToArray. Allow GetBuffer and
493 ToArray even after closing the stream.
495 2003-03-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
498 (Move): don't use File.Move.
499 * DirectoryInfo.cs: fixed Name property.
503 2003-03-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
505 * DirectoryInfo.cs: changed ToString to match MS behavior.
506 * Path.cs: further fixes to GetDirectoryName to return null in the
507 same cases that MS does.
511 2003-03-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
513 * Path.cs: fixed a couple of bugs reported in #35906.
515 2003-03-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
517 * Directory.cs: fixed bugs #38939 and #38940. No need for separate
518 unix/windows/unc shares code paths.
520 2003-02-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
522 * File.cs: fix by Elan Feingold <efeingold@mn.rr.com> for
523 SetCreationTime, SetLastAccessTime and SetLastWriteTime.
525 2003-02-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
528 (ToArray): return only the portion of the buffer that contains
529 data, not the whole buffer. (note: this makes XmlDocument.Load work
530 again with documents that have a <?xml without the 'encoding'
531 attribute, which makes gtk-sharp generator work again).
533 2003-02-25 Nick Drochak <ndrochak@gol.com>
535 * File.cs (GetCreationTime): Throw proper execption when path is not
538 Tue Feb 25 11:55:35 CET 2003 Paolo Molaro <lupus@ximian.com>
540 * MemoryStream.cs: make it behave sanely when the stream is
541 incrementally expanded.
543 2003-02-21 Dick Porter <dick@ximian.com>
545 * FileStream.cs: Use locks around buffer manipulations. Fixes bug
548 2003-02-18 Dick Porter <dick@ximian.com>
550 * FileStream.cs: Make FileMode.Append work, and check for Seeking
551 back over old data (undocumented ms behaviour, throws an exception
552 if you try). Fixes bug 35975.
554 2003-02-17 Dick Porter <dick@ximian.com>
556 * FileStream.cs: Don't close the handle if the stream doesn't own
557 it. Patch from Raymond Penners (raymond@dotsphinx.com), bug
560 2003-02-14 Zoltan Varga <vargaz@freemail.hu>
562 * FileStream.cs (Write): flush after writing the last segment as well.
564 2003-02-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
567 (ReadLine): fixed the case when the string ends with a '\n'.
569 2003-02-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
571 * MemoryStream.cs: create the buffer of the specified capacity.
573 2003-01-31 Patrik Torstensson
575 * MemoryStream.cs: use BlockCopyInternal instead of Array.Copy, this is
576 the same way as MS does it (performance improvement)
578 2003-01-29 Zoltan Varga <vargaz@freemail.hu>
580 * Directory.cs (GetFileSystemEntries): moved error handling to the
581 correct instance of GetFileSystemEntries so all callers can enjoy it.
583 2003-01-28 Zoltan Varga <vargaz@freemail.hu>
585 * File.cs: add error handling to Get...Time methods.
587 2003-01-26 Zoltan Varga <vargaz@freemail.hu>
589 * Directory.cs: fix GetParent so it actually works.
591 2003-01-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
593 * Path.cs: fixlet to ChangeExtension for the case when the path is
596 2003-01-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
598 * BufferedStream.cs: don't try to write a 0 sized array on when
603 2003-01-18 Jonathan Pryor <jonpryor@vt.edu>
605 * FileStream.cs: Add IsAsync property. (Documented in "C# In A Nutshell".)
607 2003-01-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
609 * MemoryStream.cs: fixed bug #36319.
611 2002-12-16 Eduardo Garcia Cebollero <kiwnix@yahoo.es>
613 * Directory.cs: Some fixes to SMB shares handling, and not compiling
614 with csc, mcs compiles it correctly (mcs bug 35652)
616 2002-12-14 Eduardo Garcia Cebollero <kiwnix@yahoo.es>
618 * Directory.cs: Some fixes related to correct some exceptions thrown
620 2002-12-11 Eduardo Garcia Cebollero <kiwnix@yahoo.es>
622 * Directory.cs: Some Exceptions added, fixed GetParent(),
623 CreateDirectory() should work with unix, native windows and
624 windows samba shares. Converted end-lines from dos-mode to unix-mode
626 2002-12-08 Eduardo Garcia Cebollero <kiwnix@yahoo.es>
628 * Directory.cs: CreateDirectory works now with Absolute paths
629 too, not only with relative ones.
631 2002-12-07 Peter Williams <peterw@ximian.com>
633 * Directory.cs: Don't use the uninitialized pathsumm here.
634 Don't try and create "" if we're using an absolute path.
636 2002-12-07 Eduardo Garcia Cebollero <kiwnix@yahoo.es>
638 * Directory.cs: Now the creation of a new directory works recursively
639 it will make parents as needed.
641 2002-11-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
643 * BufferedStream.cs: applied patch from <carlosga@telefonica.net> that
646 Tue Nov 19 13:01:22 CET 2002 Paolo Molaro <lupus@ximian.com>
648 * StreamWriter.cs: output the encoding preamble at the start of a
651 2002-11-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
653 * StreamReader.cs: Changed all Encoding.UTF8 to Encoding.UTF8Unmarked.
655 2002-11-06 Miguel de Icaza <miguel@ximian.com>
657 * StreamWriter.cs: Changed all Encoding.UTF8 to Encoding.UTF8Unmarked.
659 2002-10-31 Dick Porter <dick@ximian.com>
661 * FileStream.cs: Fix buffering properly this time. Also kludge
662 around broken pipe errors, treating them as EOF instead of
663 throwing an IO exception.
665 * MonoIO.cs: Return the error status in a parameter, as the
666 GetLastError() value has long since been blown away if we try and
667 look it up in a subsequent internal call invocation.
672 * Directory.cs: MonoIO methods now have an error parameter
674 2002-10-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
676 * TextReader.cs: implemented ReadBlock ().
678 2002-10-30 Miguel de Icaza <miguel@ximian.com>
680 * StreamWriter.cs: Ditto for Null stream.
682 * BinaryReader.cs: Use Unmarked here too.
684 * BinaryWriter.cs: Use the UTF8Unmarker encoding by default, this
687 2002-10-23 Dick Porter <dick@ximian.com>
689 * FileStream.cs: Implemented CanSeek, and used it around all the
690 calls to MonoIO.Seek. Fixed buffering in Read() so that it
691 doesn't block forever on short reads.
693 * MonoFileType.cs: New enum for GetFileType
695 * MonoIO.cs: Added GetFileType
697 2002-10-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
699 * StreamReader.cs: ReadLine now treats a \r not followed by a \n as a
700 \n (this is what MS does).
702 2002-10-18 Dick Porter <dick@ximian.com>
704 * FileStream.cs: SeekOrigin.End still calculates the offset from
705 the end of the file with positive values extending the length.
708 2002-10-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
710 * Path.cs: some cleanup. Thanks to Martin Aliger.
712 2002-10-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
714 * FileStream.cs: throw an exception if trying to open a directory.
715 Thanks to Martin Aliger.
717 2002-10-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
719 * Path.cs: fixes bug #28046.
721 2002-09-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
723 * StreamReader.cs: give more information when wrong parameters passed.
725 2002-09-21 Miguel de Icaza <miguel@ximian.com>
727 * FileStream.cs: Do not call FSync on the file.
729 2002-09-16 Miguel de Icaza <miguel@ximian.com>
731 * TextWriter.cs (Null): The Null field should be an instance of a
732 TextWriter class that does nothing, so it is an instance of the
733 NullTextWriter class.
735 2002-09-16 Nick Drochak <ndrochak@gol.com>
737 * MemoryStream.cs (Close): Don't throw an exception if the stream
740 2002-09-15 Miguel de Icaza <miguel@ximian.com>
742 * FileStream.cs (Dispose): Call FlushBuffer(), and not Flush, as
745 The API docs show no explicit mention that Flush() should even do
746 an fsync, I am thinking that we should drop that from the
749 2002-09-09 Miguel de Icaza <miguel@ximian.com>
751 * StreamWriter.cs: When no encoding is provided, create an
752 encoding without markers, this is what MS does.
754 2002-09-06 Miguel de Icaza <miguel@ximian.com>
756 * StreamReader.cs: Implement detection of byte marks and skipping
757 of byte marks at the beginning of the stream.
759 (ReadToEnd): Use buffered read instead of char-by-char
762 Correct the default arguments for creating the StreamReader.
764 2002-08-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
766 * CheckArgument.cs: fixed check for empty string.
767 * Path.cs: various fixes. It passes all the tests in new PathTest.
769 2002-08-29 Duncan Mak <duncan@ximian.com>
771 * StreamWriter.cs: Set DisposedAlready after calling flush. Fixes
774 2002-08-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
783 * TextWriter.cs: IDisposable fixes.
785 2002-08-24 Miguel de Icaza <miguel@ximian.com>
787 * StreamReader.cs: Removed TODOs, as the code seems to be
790 * Path.cs (GetTempFileName): Make this routine atomic by not
791 testing and then creating, but using the create call to ensure
792 that we own the filename.
794 2002-08-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
796 * FileLoadException.cs: implemented ToString.
798 * StreamWriter.cs: added Null field and implemented Write (char) and
801 2002-08-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
803 * StreamReader.cs: implemented NullStreamReader.
805 2002-08-21 Miguel de Icaza <miguel@ximian.com>
807 * Path.cs (GetDirectoryName): Fix for filenames with size = 1
809 * File.cs: Removed all references that threw exceptions when the
810 paths contains a colon, as this is a valid part of an identifier
813 Everywhere: The String.Empty return from GetDirectoryName means
814 that there is no directory information about the path.
816 2002-08-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
818 * FileNotFoundException.cs: use Message and InnerException from base
819 class. Changed Message and ToString ().
821 2002-08-19 Dick Porter <dick@ximian.com>
823 * BinaryWriter.cs: The length of a string is counted in bytes, not
826 2002-08-18 Dick Porter <dick@ximian.com>
828 * BinaryReader.cs: Fixed buffering
830 2002-08-09 Nick Drochak <ndrochak@gol.com>
832 * BinaryReader.cs: added virtual to Dispose(bool).
834 2002-08-03 Jason Diamond <jason@injektilo.org>
836 * StringWriter.cs: Return UnicodeEncoding for Encoding property.
838 2002-08-03 Jason Diamond <jason@injektilo.org>
840 * StreamWriter.cs: Use GetByteCount() to get exact length instead
841 of GetMaxByteCount when converting chars to bytes.
843 2002-07-31 Duncan Mak <duncan@ximian.com>
846 (Dispose): Added and implmented.
849 (Dispose): Fixed visibility.
850 (Initialize): Fixed visibility, made internal.
853 (Dispose): Fixed visibility.
855 2002-07-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
858 (Create): allow file names without path.
860 Fri Jul 26 15:45:04 CEST 2002 Paolo Molaro <lupus@ximian.com>
862 * FileStream.cs: patch from erik@bagfors.nu to add
863 Name property support.
865 2002-07-20 Dick Porter <dick@ximian.com>
867 * MonoIO.cs: Added icall to CreatePipe
869 2002-07-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
871 * FileInfo.cs: fixes buglet #27940
873 2002-07-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
875 * Path.cs: removed unneeded line from GetExtension.
877 2002-07-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
880 (.ctor): call MonoIO.GetException with the file name.
882 2002-07-02 Mike Kestner <mkestner@speakeasy.net>
884 * StreamReader.cs: Guard against ^\n lines as pointed out by Gonzalo.
886 2002-07-02 Mike Kestner <mkestner@speakeasy.net>
888 * StreamReader.cs: Revert the last Peek change and fix the ReadLine
889 end of line detection code instead.
891 2002-07-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
894 (Peek): no need to have seek capabilitites.
896 2002-06-17 Dietmar Maurer <dietmar@ximian.com>
898 * Path.cs (ChangeExtension): handle some special cases (fixes bug #25319)
900 * File.cs (Delete): only call Directory.Exists() if DirName != ""
902 2002-06-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
904 * Directory.cs: fixed bug #26133 and also test if the directory exist
905 before performing the search.
907 2002-06-12 Nick Drochak <ndrochak@gol.com>
909 * StringReader.cs (ReadLine): Return null when we get to end of the
912 2002-05-22 Lawrence Pit <loz@cable.a2000.nl>
914 * StreamWriter.cs: added ability to write null value
916 2002-05-19 Lawrence Pit <loz@cable.a2000.nl>
918 * Stream.cs: NullStream.ReadByte now returns -1 instead of 0 to
919 prevent endless loops.
921 2002-05-17 Dan Lewis <dihlewis@yahoo.co.uk>
923 * FileStream.cs: Enforce lower bound on buffer size.
925 2002-05-16 Piers Haken <piersh@friskit.com>
927 * Stream.cs: Implement synchronous {Begin|End}{Read|Write}() methods.
929 2002-05-17 Nick Drochak <ndrochak@gol.com>
931 * StreamWriter.cs: Implement buffering. Also implemented dispose
932 pattern as recommended by the MS docs. Must call Close() now
933 to ensure the buffer is flushed.
935 2002-05-15 Nick Drochak <ndrochak@gol.com>
937 * Path.cs (GetDirectoryName): Return String.Empty if there is no
940 * StreamReader.cs: Add some parameter checking on file names.
942 * StreamWriter.cs: Add some parameter checking on file names.
944 2002-05-14 Nick Drochak <ndrochak@gol.com>
946 * File.cs: Add parameter checks to most methods. Not completely done,
947 but all current unit tests pass.
949 * Path.cs: Implement GetTempFileName().
951 2002-05-10 Nick Drochak <ndrochak@gol.com>
953 * StreamWriter.cs (Flush): Throw proper exception if internal stream
954 has already been closed when we try to flush.
956 2002/05/10 Nick Drochak <ndrochak@gol.com>
958 * FileNotFoundException.cs (ToString): Don't try to use the inner
959 exception, because it might be null. Use the message instead.
961 2002-05-09 Nick Drochak <ndrochak@gol.com>
963 * File.cs (Delete): Do not throw an exception if the file does not
966 2002-05-08 Mike Gray <mikeg@mikegray.org>
968 * File.cs: According to ECMA spec and MS docs Copy(src, dest)
969 should not overwrite dest by default.
971 2002-05-08 Nick Drochak <ndrochak@gol.com>
973 * StreamWriter.cs: Add paramter check to constructors and throw
974 exceptions where appropriate.
976 Tue May 7 11:47:46 CEST 2002 Paolo Molaro <lupus@ximian.com>
978 * StreamReader.cs: return the number of chars read even if we diddn't
979 fill the whole buffer (makes Sergey's ilasm work with mono).
981 2002-05-07 Mike Gray <mikeg_us@hotmail.com>
983 * FileInfo.cs (Create): Implement missing method.
985 2002-05-07 Mike Gray <mikeg_us@hotmail.com>
987 * File.cs: Implemented CreateText method, and fixed dst compares
988 to compare against "" instead of null twice.
990 2002-05-05 Nick Drochak <ndrochak@gol.com>
992 * StreamReader.cs: Throw exceptions where needed. Changed Null field to
993 use new internal class since null cannot be passed to constructor
994 anymore. Also, fix a coule of small bugs.
996 2002-05-03 Nick Drochak <ndrochak@gol.com>
998 * MemoryStream.cs: Refrain from allocating array until the space is
999 really needed. This fixes a bug in the Length property when the
1000 constructor without the byte array is used.
1002 2002-05-01 Duncan Mak <duncan@ximian.com>
1004 * DirectoryNotFoundException.cs (constructor): Added missing
1005 serialization constructor.
1007 2002-04-30 Duncan Mak <duncan@ximian.com>
1009 * FileLoadException.cs (constructors): Added missing (string,
1010 string) ctor, as well as (string, string, Exception) ctor.
1012 (Message): Added more info to the error message
1014 (ToString): Added. We'll need to add the StackTrace stuff when
1017 * FileShare.cs: Add a missing field, Inheritable.
1019 * TextReader.cs: Renamed Synchronised method to Synchronized.
1021 * TextWriter.cs: Renamed Synchronised method to Synchronized.
1022 Renamed protected member coreNewLine to CoreNewLine.
1024 2002-04-30 Sergey Chaban <serge@wildwestsoftware.com>
1026 * BinaryReader.cs: Allocate buffer before its first use.
1027 Handle end of stream properly. Methods to read native types
1028 (ReadInt* etc.) are little-endian (see Compact Framework docs).
1030 * BinaryWriter.cs: Store data in little-endian format.
1031 Use internal buffer for conversions.
1033 2002-03-31 Dick Porter <dick@ximian.com>
1035 * Directory.cs: Strip out "." and ".." from returned list
1037 * FileAttributes.cs: Get the right enum values
1039 2002-03-28 Dietmar Maurer <dietmar@ximian.com>
1041 * TextWriter.cs (write): added check for null
1043 2002-03-28 Dan Lewis <dihlewis@yahoo.co.uk>
1045 * Directory.cs: Throws DirectoryNotFoundException.
1046 * MonoIO.cs: Fixed to work around enum problem.
1048 2002-03-27 Dan Lewis <dihlewis@yahoo.co.uk>
1050 * StreamReader.cs: Implemented ReadLine() and ReadEnd().
1052 2002-03-27 Dan Lewis <dihlewis@yahoo.co.uk>
1054 * Directory.cs, File.cs, FileSystemInfo.cs, FileInfo.cs,
1055 DirectoryInfo.cs, Path.cs: Modified to use MonoIO class instead of
1056 wrapper and PAL classes.
1058 * MonoIO.cs, MonoIOStat.cs, MonoIOError.cs: Added.
1060 2002-03-25 Mike Kestner <mkestner@speakeasy.net>
1062 * MemoryStream.cs (Read): Fixed bug in exception throw.
1064 2002-03-24 Mike Kestner <mkestner@speakeasy.net>
1066 * StreamReader.cs (ReadBuffer): Fix buffer merging bugs.
1068 2002-03-23 Martin Baulig <martin@gnome.org>
1070 * StreamReader.cs: Always do buffered reading, use 4k blocks.
1071 (Read (char[], int, int)): Implemented.
1072 (DiscardBufferedData): Implemented.
1074 2002-03-21 Mike Kestner <mkestner@speakeasy.net>
1076 * StreamReader.cs : Fill out, add buffering, and use encoding.
1078 2002-03-19 Martin Baulig <martin@gnome.org>
1080 * StreamWriter.cs (StreamWriter (string)): The default is to override
1081 the file, not to append to it.
1082 (StreamWriter (string path, bool append)): When appending, seek to the
1083 end of the file, otherwise truncate the file to zero length.
1084 (Dispose (bool)): Close the internalStream.
1085 (Flush): Flush the interalStream.
1086 (Write (char[], int, int)): Flush the internalStream in auto-flush-mode.
1088 2002-03-19 Dan Lewis <dihlewis@yahoo.co.uk>
1090 * FileStream.cs: Flush buffer before FileSetLength.
1092 2002-02-28 Miguel de Icaza <miguel@ximian.com>
1094 * Stream.cs (NullStream): Do not track position, this beast does
1095 nothing in practice.
1097 2002-03-15 Dan Lewis <dihlewis@yahoo.co.uk>
1099 * SearchPattern.cs: New class. Glob matching code for Directory.
1100 * Directory.cs: Changed to use SearchPattern instead of mono_glob_*()
1102 2002/03/15 Nick Drochak <ndrochak@gol.com>
1104 * DirectoryInfo.cs: Fixed the overloaded GetDirectories and GetFiles.
1105 This code seemed to be copied from somewhere, and it was close,
1106 but didn't match the docs. This was the last bit needed to get
1107 NAnt to compile with our class libs.
1109 2002-03-12 Duncan Mak <duncan@ximian.com>
1111 * EndOfStreamException.cs:
1112 * FileLoadException.cs:
1113 * FileNotFoundException.cs:
1114 * PathTooLongException.cs: Changed the base classes to IOException
1115 instead of SystemException.
1117 * IOException.cs: Added missing constructors.
1119 2002-03-07 Nick Drochak <ndrochak@gol.com>
1121 * FileMode.cs: Docs don't say this should be explicitly derived from
1122 int, so just make it a normal Enum.
1124 2002-03-02 Jason Diamond <jason@injektilo.org>
1126 * StringReader.cs: Fixed off-by-one error in Peek() and Read().
1128 2002-02-12 Nick Drochak <ndrochak@gol.com>
1130 * PathTooLongException.cs: put it in the correct namespace
1131 * EndOfStreamException.cs: put it in the correct namespace
1133 Thu Jan 31 17:32:32 CET 2002 Paolo Molaro <lupus@ximian.com>
1135 * Directory.cs: handle opendir() return NULL and absolute filenames.
1137 2002-01-31 Duncan Mak <duncan@ximian.com>
1139 * FileLoadException.cs:
1140 * FileNotFoundException: Added missing bits for serialization.
1142 Thu Jan 24 17:42:54 CET 2002 Paolo Molaro <lupus@ximian.com>
1144 * Directory.cs: allow directories in GetFiles() mask.
1146 2002-01-23 Miguel de Icaza <miguel@ximian.com>
1148 * FileInfo.c (CopyTo, MoveTo): Implement.
1150 * FileStream.cs: Add argument checking to the constructor.
1152 * File.cs: Rewrote most of the file. Implement Copy, Open, Create,
1153 OpenText, OpenWrite, Move. Made pending methods flagged as MonoTODO.
1155 * Directory.cs (Delete): reimplement without using DirectoryInfo.
1156 (Delete): Implement the recursive version.
1157 (GetCreationTime, GetLastWriteTime, GetLastAccessTime): Implement.
1158 (Move): Reimplement.
1159 (getNames): dead code removal.
1161 * Path.cs: define an internal DirectorySeparatorStr that we use in
1164 * Wrapper.cs: Updated to new version.
1166 * DirectoryInfo (Delete): Implement using the Directory API.
1168 * DirectoryInfo.cs (GetFiles, GetDirectories, GetFileSystemInfos,
1169 Delete, Create, Parent, Exists, MoveTo): Implement.
1171 * Directory.cs (GetListing): implement new utility function.
1172 (GetDirectories): Implement.
1173 (GetFileSystemEntries): Implement.
1174 (GetFiles): Implement.
1176 * CheckArgument.cs (Path): Do not allow null by default.
1178 Tue Jan 22 22:53:23 CET 2002 Paolo Molaro <lupus@ximian.com>
1180 * DirectoryInfo.cs, FileInfo.cs: do not use Debug from the system
1183 2002-01-20 Nick Drochak <ndrochak@gol.com>
1185 * SeekOrigin.cs: Added Serializable attribute.
1187 2002-01-19 Duncan Mak <duncan@ximian.com>
1189 * PathTooLongException.cs:
1190 * EndOfStreamException.cs: Added to CVS.
1192 Thu Jan 10 12:06:46 MST 2002 Matt Kimball <matt@kimball.net>
1194 * BufferedStream.cs: Initial implemenation. The synchronous
1195 methods for both reading and writing are implemented. I'll do the
1196 asynchronous methods in a bit.
1198 Wed Jan 9 16:04:39 MST 2002 Matt Kimball <matt@kimball.net>
1200 * BinaryWriter.cs: Initial implementation. And it's all there.
1202 * BinaryReader.cs: The constructor now uses the passed in encoding,
1205 Wed Jan 9 13:54:28 MST 2002 Matt Kimball <matt@kimbal.net>
1207 * BinaryReader.cs: Initial implementation. I think it's complete.
1209 2002-01-04 Ravi Pratap <ravi@ximian.com>
1211 * CheckArgument.cs, CheckPermission.cs, Directory.cs: MonoTODO
1212 attribute decorations.
1214 * DirectoryInfo.cs, File.cs, FileInfo.cs, FileSystemInfo.cs,
1215 Path.cs, TextReader.cs, TextWriter.cs : Ditto.
1217 * FileLoadException.cs, FileNotFoundException.cs, StreamReader.cs:
1220 2001-12-11 Dick Porter <dick@ximian.com>
1222 * FileStream.cs: Use handles rather than casting file descriptors.
1223 Added Handle property.
1225 Wed Nov 14 16:47:47 CET 2001 Paolo Molaro <lupus@ximian.com>
1227 * CheckPermission.cs: disable ModeAccess() code: it's wrong.
1228 * FileStream.cs: only trow an exception if the read failed in ReadByte().
1229 * StreamReader.cs: implement Peek and Read.
1230 * TextWriter.cs: CLSCompliant updates.
1232 2001-11-10 Sean MacIsaac <macisaac@ximian.com>
1234 * FileNotFoundException.cs: Added some constructors
1236 * Path.cs (GetFullPath): Fixed implementation
1238 Fri Nov 2 18:27:58 CET 2001 Paolo Molaro <lupus@ximian.com>
1240 * DirectoryNotFoundException.cs: implemented.
1242 Tue Sep 25 18:54:06 CEST 2001 Paolo Molaro <lupus@ximian.com>
1244 * File.cs: fix signatures of the Open() and OpenRead() functions
1247 Thu Sep 13 18:04:23 CEST 2001 Paolo Molaro <lupus@ximian.com>
1249 * FileLoadException.cs, FileNotFoundException.cs: added.
1251 2001-08-28 Dietmar Maurer <dietmar@ximian.com>
1253 * TextReader.cs: implemented the Read method
1255 * StreamReader.cs: impl. stubs
1257 * StreamWriter.cs: impl.
1259 * TextWriter.cs: implemented Write and WriteLine methods
1261 Sun Aug 26 23:01:41 CEST 2001 Paolo Molaro <lupus@ximian.com>
1263 * FileAccess.cs, FileMode.cs: change values to be compatible with
1266 Sun Aug 26 11:47:56 CEST 2001 Paolo Molaro <lupus@ximian.com>
1268 * IOException.cs: Implemented System.IO.Exception.
1270 2001-07-18 Michael Lambert <michaellambert@email.com>
1272 *SeekOrigin.cs.cs, FileShare.cs, FileMode.cs, FileAccess.cs: Add.
1274 2001-07-19 Marcin Szczepanski <marcins@zipworld.com.au>
1276 * System.IO.MemoryStream.cs: Added. Had quite a few cases of
1277 "LAMESPEC", but the tests work against the MS implementation so
1278 the major functions are right (ie. Read/Write/Seek). Some more
1279 tests required for the various constructors and exceptions.
1281 2001-07-16 Marcin Szczepanski <marcins@zipworld.com.au>
1283 * StringReader.cs, StringWriter.cs, TextReader.cs, TextWriter.cs:
1284 New class implemenations.
1286 * StringReaderTest.cs, StringWriterTest.cs: Test suite for the above.