1 2003-07-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3 * MemoryStream.cs: fixed bug #46060. Thanks to Carlos Barcenilla.
5 2003-06-30 Zoltan Varga <vargaz@freemail.hu>
7 * FileStream.cs (Dispose): Flush the buffer even if we don't own the
9 * FileStream.cs: Add a new constructor parameter to turn off buffering.
10 This is used by the Console.OpenStandard...() methods. Also fix
11 argument checking in InitBuffer(), so a zero buffer size is also
14 2003-06-27 Dietmar Maurer <dietmar@ximian.com>
16 * Stream.cs: use async.delegate invoke
18 2003-06-18 Nick Drochak <ndrochak@gol.com>
20 * FileSystemInfo.cs: Refresh cache when changeing file times.
22 2003-06-11 Zoltan Varga <vargaz@freemail.hu>
24 * FileStream.cs: Fix errors in previous checkins:
25 (Write): Only take the shortcut route if the data is longer than the
27 (Write): Flush the buffer before writing out the new data
28 (Write): Flush the buffer after writing out a segment since otherwise
29 we will go into an infinite loop.
30 (FlushBuffer): Remove my last change since it was clearly wrong.
31 (Seek): Run FlushBuffer () after the in-buffer seek optimization.
32 (Seek): Only use the in-buffer optimization if the buffer is not
34 (Length): Call FlushBuffer () since buffer data might change the size
37 2003-06-09 Ville Palo <vi64pa@kolumbus.fi>
40 - removed unusefull bugfix (DirectoryNotFoundException)
43 2003-06-09 Ville Palo <vi64pa@kolumbus.fi>
45 * FileStream.cs: Check buffer size before append/read -exceptios
47 2003-06-09 Ville Palo <vi64pa@kolumbus.fi>
49 * FileStream.cs: Check DirectoryNotFound before FileNotFound.
51 2003-06-09 Ville Palo <vi64pa@kolumbus.fi>
53 * FileStream.cs: Does not anymore flush while writing
55 2003-06-02 Nick Drochak <ndrochak@gol.com>
57 * FileInfo.cs (MoveTo): Throw exceptions when dest exists, and check
60 2003-05-27 Lluis Sanchez Gual <lluis@ximian.com>
62 * BinaryReader.cs: Stream don't need to be seekable to use PeekChar.
64 2003-05-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
66 * Path.cs: fixed bug #42631.
68 2003-05-22 Zoltan Varga <vargaz@freemail.hu>
70 * File.cs (Move): Allow moving of directories.
71 Fix 'destination is a directory' test.
73 2003-05-21 Ben Maurer <bmaurer@users.sourceforge.net>
75 * StringWriter.cs: Fixed bug #43431: "StringWriter
76 .ctor(CultureInfo) does not create a new StringBuilder ()"
78 2003-05-11 Zoltan Varga <vargaz@freemail.hu>
80 * FileStream.cs (FlushBuffer): After a flush, the buffer is
81 advanced by buf_offset bytes, not buf_length bytes.
83 2003-05-16 Dick Porter <dick@ximian.com>
85 * MonoIO.cs: Implement GetTempPath
87 2003-05-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
89 * DirectoryInfo.cs: fixed bug #42991.
91 (CanonicalizePath): store the value of the trimmed input string. Make it
92 work with paths such as "/home/xxx/.".
94 2003-05-08 Ben Maurer <bmaurer@users.sourceforge.net>
96 (CanonicalizePath) Fixed bug #42631, which duplicated the
97 root part of the path under Windows.
99 2003-05-08 Ville Palo <vi64pa@kolumbus.fi>
101 * FileSystemInfo.cs: Added 1.1 properties LastAccessTimeUtc,
102 LastWriteTimeUtc and CreationTimeUtc
104 2003-05-07 Ben Maurer <bmaurer@users.sourceforge.net>
106 (GetPathRoot) Added support for UNC paths.
107 (CanonicalizePath) Added optimizations per Miguel's requests.
109 2003-05-06 Ville Palo <vi64pa@kolumbus.fi>
112 - Removed unusefull code.
113 - Added ObjectDisposedException to Position
114 - Dont flush if stream is allready closed.
115 - Flush throws also ObjectDisposedException.
117 - GetFileSystemEtries: ArgumentNullException if pattern is null
118 * DirectoryInfo.cs: Fixed little MoveTo () bug.
120 - Exists: If file does not exists when instance is created the
121 value of the Exists property does not change even if file is created
123 - Delete: If path is a directory UnauthorizedException is thrown.
124 - CopyTo: Now we can overwrite file if wanted.
126 - GetFullPath: Now throws exception when path is " ".
128 2003-05-04 Ben Maurer <bmaurer@users.sourceforge.net>
129 * Directory.cs (GetLogicalDrives) Marked as MonoTODO
130 because we need to implement the method on Windows.
132 (CanonicalizePath) Added new function to get
133 rid of . and .. in path names. Need to figure out what
134 other functions should call this.
135 (GetFullPath) Added call to the above function.
137 2003-05-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
140 (.ctor): fixed parameters passed to FileNotFoundException.
142 2003-04-25 Dietmar Maurer <dietmar@ximian.com>
144 * BinaryReader.cs (Read): make sure the buffer is big enough (fix
147 2003-04-24 Pedro MartÃnez Juliá <yoros@wanadoo.es>
149 * BufferedStream.cs: Test if it's possible to seek in a Stream
150 before access to Position. This prevents the exception thrown when
151 the stream is System.Net.Sockets.NetworkStream.
153 2003-04-22 Ville Palo <vi64pa@kolumbus.fi>
155 * Directory.cs: clean up --> performance improvment. Some exceptions
156 are now checked in File.cs.
157 * File.cs: Implemented Get/SetXXXTimeUtc () methods. Some bugfixes.
159 2003-04-21 Ville Palo <vi64pa@kolumbus.fi>
161 * Directory.cs: lots of fixes.
162 - Added GetXXXtimeUtc () (v1.1) methods.
163 - Added SetXXXtimeUtc () (v1.1) methods.
165 2003-04-20 Igor Nosyryev <nosyryev@attbi.com>
167 * StringReader.cs (Read): Increment nextChar by charsToRead
168 instead of count, that will guarantee that the next time the
169 method is called, it will return 0 on an empty string rather than
170 throwing an exception
172 2003-04-19 Ville Palo <vi64pa@kolumbus.fi>
174 * BufferedStream.cs: Some fixes, mostly throwing exceptions.
175 * MemoryStream.cs: Changed the order of exception checking
176 * StringReader.cs: little clean up
178 2003-04-14 Ville Palo <vi64pa@kolumbus.fi>
180 * BinaryWriter.cs: Fixed decimal writing and lots of
181 ObjectDisposedExceptions added.
183 2003-04-13 Ville Palo <vi64pa@kolumbus.fi>
185 * BinaryReader.cs: Fix to ReadDecimal() method.
187 2003-04-13 Ville Palo <vi64pa@kolumbus.fi>
189 * StringReader.cs: Added some ObjectDisposedExceptions.
190 * StringWriter.cs: Added some ObjectDisposedExceptions.
191 * BinaryReader.cs: Added some ObjectDisposedExceptions.
193 2003-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
195 * FileStream.cs: fixed the windows build. This is an mcs bug. I'll
198 2003-04-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
200 * FileStream.cs: fixed bug #40182 and made more unit test pass.
202 2003-04-11 Ville Palo <vi64pa@kolumbus.fi>
204 * FileStream.cs: Added new methods Lock () and Unlock ()
206 2003-04-11 Ville Palo <vi64pa@kolumbus.fi>
208 * StringReader.cs: Throws exceptions if constructor parameter is null.
210 2003-04-11 Ville Palo <vi64pa@kolumbus.fi>
212 * StringWriter.cs: Now throws an exception if StringBuilder parameter
215 2003-04-05 Miguel de Icaza <miguel@ximian.com>
217 * TextWriter.cs: Implemented Synchronized method.
219 * TextReader.cs: Implemented Synchronized method.
221 2003-04-04 Miguel de Icaza <miguel@ximian.com>
223 * FileStream.cs (Read, ReadByte, Seek): throw
224 ObjectDisposedException if the handle has been released.
226 (Read): Throw exceptions specified in the spec.
228 (Read, Write, ReadSegment, WriteSegment): There is no requirement for any
229 instance methods of FileStream to be thread safe, so remove all
230 the calls to lock on the object
232 2003-03-31 Nick Drochak <ndrochak@gol.com>
234 * Path.cs (GetDirectoryName): Throw proper execption when path is empty.
236 2003-03-20 Lluis Sanchez Gual <lluis@ideary.com>
238 * FileNotFoundException.cs: fixed serialization bug.
240 2003-03-18 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
242 * StringWriter.cs : don't release internalString on Dispose().
244 2003-03-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
246 * StreamReader.cs: fixed bug #39280.
248 2003-03-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
250 * Directory.cs: readded mkdir -p behavior. Thanks to kiwnix for
253 2003-03-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
255 * MemoryStream.cs: general fixes and reformatted. Passes all tests in
256 the new MemoryStreamTest.
258 2003-03-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
260 * MemoryStream.cs: undo my bogus fix in ToArray. Allow GetBuffer and
261 ToArray even after closing the stream.
263 2003-03-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
266 (Move): don't use File.Move.
267 * DirectoryInfo.cs: fixed Name property.
271 2003-03-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
273 * DirectoryInfo.cs: changed ToString to match MS behavior.
274 * Path.cs: further fixes to GetDirectoryName to return null in the
275 same cases that MS does.
279 2003-03-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
281 * Path.cs: fixed a couple of bugs reported in #35906.
283 2003-03-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
285 * Directory.cs: fixed bugs #38939 and #38940. No need for separate
286 unix/windows/unc shares code paths.
288 2003-02-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
290 * File.cs: fix by Elan Feingold <efeingold@mn.rr.com> for
291 SetCreationTime, SetLastAccessTime and SetLastWriteTime.
293 2003-02-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
296 (ToArray): return only the portion of the buffer that contains
297 data, not the whole buffer. (note: this makes XmlDocument.Load work
298 again with documents that have a <?xml without the 'encoding'
299 attribute, which makes gtk-sharp generator work again).
301 2003-02-25 Nick Drochak <ndrochak@gol.com>
303 * File.cs (GetCreationTime): Throw proper execption when path is not
306 Tue Feb 25 11:55:35 CET 2003 Paolo Molaro <lupus@ximian.com>
308 * MemoryStream.cs: make it behave sanely when the stream is
309 incrementally expanded.
311 2003-02-21 Dick Porter <dick@ximian.com>
313 * FileStream.cs: Use locks around buffer manipulations. Fixes bug
316 2003-02-18 Dick Porter <dick@ximian.com>
318 * FileStream.cs: Make FileMode.Append work, and check for Seeking
319 back over old data (undocumented ms behaviour, throws an exception
320 if you try). Fixes bug 35975.
322 2003-02-17 Dick Porter <dick@ximian.com>
324 * FileStream.cs: Don't close the handle if the stream doesn't own
325 it. Patch from Raymond Penners (raymond@dotsphinx.com), bug
328 2003-02-14 Zoltan Varga <vargaz@freemail.hu>
330 * FileStream.cs (Write): flush after writing the last segment as well.
332 2003-02-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
335 (ReadLine): fixed the case when the string ends with a '\n'.
337 2003-02-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
339 * MemoryStream.cs: create the buffer of the specified capacity.
341 2003-01-31 Patrik Torstensson
343 * MemoryStream.cs: use BlockCopyInternal instead of Array.Copy, this is
344 the same way as MS does it (performance improvement)
346 2003-01-29 Zoltan Varga <vargaz@freemail.hu>
348 * Directory.cs (GetFileSystemEntries): moved error handling to the
349 correct instance of GetFileSystemEntries so all callers can enjoy it.
351 2003-01-28 Zoltan Varga <vargaz@freemail.hu>
353 * File.cs: add error handling to Get...Time methods.
355 2003-01-26 Zoltan Varga <vargaz@freemail.hu>
357 * Directory.cs: fix GetParent so it actually works.
359 2003-01-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
361 * Path.cs: fixlet to ChangeExtension for the case when the path is
364 2003-01-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
366 * BufferedStream.cs: don't try to write a 0 sized array on when
371 2003-01-18 Jonathan Pryor <jonpryor@vt.edu>
373 * FileStream.cs: Add IsAsync property. (Documented in "C# In A Nutshell".)
375 2003-01-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
377 * MemoryStream.cs: fixed bug #36319.
379 2002-12-16 Eduardo Garcia Cebollero <kiwnix@yahoo.es>
381 * Directory.cs: Some fixes to SMB shares handling, and not compiling
382 with csc, mcs compiles it correctly (mcs bug 35652)
384 2002-12-14 Eduardo Garcia Cebollero <kiwnix@yahoo.es>
386 * Directory.cs: Some fixes related to correct some exceptions thrown
388 2002-12-11 Eduardo Garcia Cebollero <kiwnix@yahoo.es>
390 * Directory.cs: Some Exceptions added, fixed GetParent(),
391 CreateDirectory() should work with unix, native windows and
392 windows samba shares. Converted end-lines from dos-mode to unix-mode
394 2002-12-08 Eduardo Garcia Cebollero <kiwnix@yahoo.es>
396 * Directory.cs: CreateDirectory works now with Absolute paths
397 too, not only with relative ones.
399 2002-12-07 Peter Williams <peterw@ximian.com>
401 * Directory.cs: Don't use the uninitialized pathsumm here.
402 Don't try and create "" if we're using an absolute path.
404 2002-12-07 Eduardo Garcia Cebollero <kiwnix@yahoo.es>
406 * Directory.cs: Now the creation of a new directory works recursively
407 it will make parents as needed.
409 2002-11-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
411 * BufferedStream.cs: applied patch from <carlosga@telefonica.net> that
414 Tue Nov 19 13:01:22 CET 2002 Paolo Molaro <lupus@ximian.com>
416 * StreamWriter.cs: output the encoding preamble at the start of a
419 2002-11-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
421 * StreamReader.cs: Changed all Encoding.UTF8 to Encoding.UTF8Unmarked.
423 2002-11-06 Miguel de Icaza <miguel@ximian.com>
425 * StreamWriter.cs: Changed all Encoding.UTF8 to Encoding.UTF8Unmarked.
427 2002-10-31 Dick Porter <dick@ximian.com>
429 * FileStream.cs: Fix buffering properly this time. Also kludge
430 around broken pipe errors, treating them as EOF instead of
431 throwing an IO exception.
433 * MonoIO.cs: Return the error status in a parameter, as the
434 GetLastError() value has long since been blown away if we try and
435 look it up in a subsequent internal call invocation.
440 * Directory.cs: MonoIO methods now have an error parameter
442 2002-10-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
444 * TextReader.cs: implemented ReadBlock ().
446 2002-10-30 Miguel de Icaza <miguel@ximian.com>
448 * StreamWriter.cs: Ditto for Null stream.
450 * BinaryReader.cs: Use Unmarked here too.
452 * BinaryWriter.cs: Use the UTF8Unmarker encoding by default, this
455 2002-10-23 Dick Porter <dick@ximian.com>
457 * FileStream.cs: Implemented CanSeek, and used it around all the
458 calls to MonoIO.Seek. Fixed buffering in Read() so that it
459 doesn't block forever on short reads.
461 * MonoFileType.cs: New enum for GetFileType
463 * MonoIO.cs: Added GetFileType
465 2002-10-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
467 * StreamReader.cs: ReadLine now treats a \r not followed by a \n as a
468 \n (this is what MS does).
470 2002-10-18 Dick Porter <dick@ximian.com>
472 * FileStream.cs: SeekOrigin.End still calculates the offset from
473 the end of the file with positive values extending the length.
476 2002-10-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
478 * Path.cs: some cleanup. Thanks to Martin Aliger.
480 2002-10-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
482 * FileStream.cs: throw an exception if trying to open a directory.
483 Thanks to Martin Aliger.
485 2002-10-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
487 * Path.cs: fixes bug #28046.
489 2002-09-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
491 * StreamReader.cs: give more information when wrong parameters passed.
493 2002-09-21 Miguel de Icaza <miguel@ximian.com>
495 * FileStream.cs: Do not call FSync on the file.
497 2002-09-16 Miguel de Icaza <miguel@ximian.com>
499 * TextWriter.cs (Null): The Null field should be an instance of a
500 TextWriter class that does nothing, so it is an instance of the
501 NullTextWriter class.
503 2002-09-16 Nick Drochak <ndrochak@gol.com>
505 * MemoryStream.cs (Close): Don't throw an exception if the stream
508 2002-09-15 Miguel de Icaza <miguel@ximian.com>
510 * FileStream.cs (Dispose): Call FlushBuffer(), and not Flush, as
513 The API docs show no explicit mention that Flush() should even do
514 an fsync, I am thinking that we should drop that from the
517 2002-09-09 Miguel de Icaza <miguel@ximian.com>
519 * StreamWriter.cs: When no encoding is provided, create an
520 encoding without markers, this is what MS does.
522 2002-09-06 Miguel de Icaza <miguel@ximian.com>
524 * StreamReader.cs: Implement detection of byte marks and skipping
525 of byte marks at the beginning of the stream.
527 (ReadToEnd): Use buffered read instead of char-by-char
530 Correct the default arguments for creating the StreamReader.
532 2002-08-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
534 * CheckArgument.cs: fixed check for empty string.
535 * Path.cs: various fixes. It passes all the tests in new PathTest.
537 2002-08-29 Duncan Mak <duncan@ximian.com>
539 * StreamWriter.cs: Set DisposedAlready after calling flush. Fixes
542 2002-08-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
551 * TextWriter.cs: IDisposable fixes.
553 2002-08-24 Miguel de Icaza <miguel@ximian.com>
555 * StreamReader.cs: Removed TODOs, as the code seems to be
558 * Path.cs (GetTempFileName): Make this routine atomic by not
559 testing and then creating, but using the create call to ensure
560 that we own the filename.
562 2002-08-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
564 * FileLoadException.cs: implemented ToString.
566 * StreamWriter.cs: added Null field and implemented Write (char) and
569 2002-08-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
571 * StreamReader.cs: implemented NullStreamReader.
573 2002-08-21 Miguel de Icaza <miguel@ximian.com>
575 * Path.cs (GetDirectoryName): Fix for filenames with size = 1
577 * File.cs: Removed all references that threw exceptions when the
578 paths contains a colon, as this is a valid part of an identifier
581 Everywhere: The String.Empty return from GetDirectoryName means
582 that there is no directory information about the path.
584 2002-08-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
586 * FileNotFoundException.cs: use Message and InnerException from base
587 class. Changed Message and ToString ().
589 2002-08-19 Dick Porter <dick@ximian.com>
591 * BinaryWriter.cs: The length of a string is counted in bytes, not
594 2002-08-18 Dick Porter <dick@ximian.com>
596 * BinaryReader.cs: Fixed buffering
598 2002-08-09 Nick Drochak <ndrochak@gol.com>
600 * BinaryReader.cs: added virtual to Dispose(bool).
602 2002-08-03 Jason Diamond <jason@injektilo.org>
604 * StringWriter.cs: Return UnicodeEncoding for Encoding property.
606 2002-08-03 Jason Diamond <jason@injektilo.org>
608 * StreamWriter.cs: Use GetByteCount() to get exact length instead
609 of GetMaxByteCount when converting chars to bytes.
611 2002-07-31 Duncan Mak <duncan@ximian.com>
614 (Dispose): Added and implmented.
617 (Dispose): Fixed visibility.
618 (Initialize): Fixed visibility, made internal.
621 (Dispose): Fixed visibility.
623 2002-07-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
626 (Create): allow file names without path.
628 Fri Jul 26 15:45:04 CEST 2002 Paolo Molaro <lupus@ximian.com>
630 * FileStream.cs: patch from erik@bagfors.nu to add
631 Name property support.
633 2002-07-20 Dick Porter <dick@ximian.com>
635 * MonoIO.cs: Added icall to CreatePipe
637 2002-07-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
639 * FileInfo.cs: fixes buglet #27940
641 2002-07-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
643 * Path.cs: removed unneeded line from GetExtension.
645 2002-07-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
648 (.ctor): call MonoIO.GetException with the file name.
650 2002-07-02 Mike Kestner <mkestner@speakeasy.net>
652 * StreamReader.cs: Guard against ^\n lines as pointed out by Gonzalo.
654 2002-07-02 Mike Kestner <mkestner@speakeasy.net>
656 * StreamReader.cs: Revert the last Peek change and fix the ReadLine
657 end of line detection code instead.
659 2002-07-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
662 (Peek): no need to have seek capabilitites.
664 2002-06-17 Dietmar Maurer <dietmar@ximian.com>
666 * Path.cs (ChangeExtension): handle some special cases (fixes bug #25319)
668 * File.cs (Delete): only call Directory.Exists() if DirName != ""
670 2002-06-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
672 * Directory.cs: fixed bug #26133 and also test if the directory exist
673 before performing the search.
675 2002-06-12 Nick Drochak <ndrochak@gol.com>
677 * StringReader.cs (ReadLine): Return null when we get to end of the
680 2002-05-22 Lawrence Pit <loz@cable.a2000.nl>
682 * StreamWriter.cs: added ability to write null value
684 2002-05-19 Lawrence Pit <loz@cable.a2000.nl>
686 * Stream.cs: NullStream.ReadByte now returns -1 instead of 0 to
687 prevent endless loops.
689 2002-05-17 Dan Lewis <dihlewis@yahoo.co.uk>
691 * FileStream.cs: Enforce lower bound on buffer size.
693 2002-05-16 Piers Haken <piersh@friskit.com>
695 * Stream.cs: Implement synchronous {Begin|End}{Read|Write}() methods.
697 2002-05-17 Nick Drochak <ndrochak@gol.com>
699 * StreamWriter.cs: Implement buffering. Also implemented dispose
700 pattern as recommended by the MS docs. Must call Close() now
701 to ensure the buffer is flushed.
703 2002-05-15 Nick Drochak <ndrochak@gol.com>
705 * Path.cs (GetDirectoryName): Return String.Empty if there is no
708 * StreamReader.cs: Add some parameter checking on file names.
710 * StreamWriter.cs: Add some parameter checking on file names.
712 2002-05-14 Nick Drochak <ndrochak@gol.com>
714 * File.cs: Add parameter checks to most methods. Not completely done,
715 but all current unit tests pass.
717 * Path.cs: Implement GetTempFileName().
719 2002-05-10 Nick Drochak <ndrochak@gol.com>
721 * StreamWriter.cs (Flush): Throw proper exception if internal stream
722 has already been closed when we try to flush.
724 2002/05/10 Nick Drochak <ndrochak@gol.com>
726 * FileNotFoundException.cs (ToString): Don't try to use the inner
727 exception, because it might be null. Use the message instead.
729 2002-05-09 Nick Drochak <ndrochak@gol.com>
731 * File.cs (Delete): Do not throw an exception if the file does not
734 2002-05-08 Mike Gray <mikeg@mikegray.org>
736 * File.cs: According to ECMA spec and MS docs Copy(src, dest)
737 should not overwrite dest by default.
739 2002-05-08 Nick Drochak <ndrochak@gol.com>
741 * StreamWriter.cs: Add paramter check to constructors and throw
742 exceptions where appropriate.
744 Tue May 7 11:47:46 CEST 2002 Paolo Molaro <lupus@ximian.com>
746 * StreamReader.cs: return the number of chars read even if we diddn't
747 fill the whole buffer (makes Sergey's ilasm work with mono).
749 2002-05-07 Mike Gray <mikeg_us@hotmail.com>
751 * FileInfo.cs (Create): Implement missing method.
753 2002-05-07 Mike Gray <mikeg_us@hotmail.com>
755 * File.cs: Implemented CreateText method, and fixed dst compares
756 to compare against "" instead of null twice.
758 2002-05-05 Nick Drochak <ndrochak@gol.com>
760 * StreamReader.cs: Throw exceptions where needed. Changed Null field to
761 use new internal class since null cannot be passed to constructor
762 anymore. Also, fix a coule of small bugs.
764 2002-05-03 Nick Drochak <ndrochak@gol.com>
766 * MemoryStream.cs: Refrain from allocating array until the space is
767 really needed. This fixes a bug in the Length property when the
768 constructor without the byte array is used.
770 2002-05-01 Duncan Mak <duncan@ximian.com>
772 * DirectoryNotFoundException.cs (constructor): Added missing
773 serialization constructor.
775 2002-04-30 Duncan Mak <duncan@ximian.com>
777 * FileLoadException.cs (constructors): Added missing (string,
778 string) ctor, as well as (string, string, Exception) ctor.
780 (Message): Added more info to the error message
782 (ToString): Added. We'll need to add the StackTrace stuff when
785 * FileShare.cs: Add a missing field, Inheritable.
787 * TextReader.cs: Renamed Synchronised method to Synchronized.
789 * TextWriter.cs: Renamed Synchronised method to Synchronized.
790 Renamed protected member coreNewLine to CoreNewLine.
792 2002-04-30 Sergey Chaban <serge@wildwestsoftware.com>
794 * BinaryReader.cs: Allocate buffer before its first use.
795 Handle end of stream properly. Methods to read native types
796 (ReadInt* etc.) are little-endian (see Compact Framework docs).
798 * BinaryWriter.cs: Store data in little-endian format.
799 Use internal buffer for conversions.
801 2002-03-31 Dick Porter <dick@ximian.com>
803 * Directory.cs: Strip out "." and ".." from returned list
805 * FileAttributes.cs: Get the right enum values
807 2002-03-28 Dietmar Maurer <dietmar@ximian.com>
809 * TextWriter.cs (write): added check for null
811 2002-03-28 Dan Lewis <dihlewis@yahoo.co.uk>
813 * Directory.cs: Throws DirectoryNotFoundException.
814 * MonoIO.cs: Fixed to work around enum problem.
816 2002-03-27 Dan Lewis <dihlewis@yahoo.co.uk>
818 * StreamReader.cs: Implemented ReadLine() and ReadEnd().
820 2002-03-27 Dan Lewis <dihlewis@yahoo.co.uk>
822 * Directory.cs, File.cs, FileSystemInfo.cs, FileInfo.cs,
823 DirectoryInfo.cs, Path.cs: Modified to use MonoIO class instead of
824 wrapper and PAL classes.
826 * MonoIO.cs, MonoIOStat.cs, MonoIOError.cs: Added.
828 2002-03-25 Mike Kestner <mkestner@speakeasy.net>
830 * MemoryStream.cs (Read): Fixed bug in exception throw.
832 2002-03-24 Mike Kestner <mkestner@speakeasy.net>
834 * StreamReader.cs (ReadBuffer): Fix buffer merging bugs.
836 2002-03-23 Martin Baulig <martin@gnome.org>
838 * StreamReader.cs: Always do buffered reading, use 4k blocks.
839 (Read (char[], int, int)): Implemented.
840 (DiscardBufferedData): Implemented.
842 2002-03-21 Mike Kestner <mkestner@speakeasy.net>
844 * StreamReader.cs : Fill out, add buffering, and use encoding.
846 2002-03-19 Martin Baulig <martin@gnome.org>
848 * StreamWriter.cs (StreamWriter (string)): The default is to override
849 the file, not to append to it.
850 (StreamWriter (string path, bool append)): When appending, seek to the
851 end of the file, otherwise truncate the file to zero length.
852 (Dispose (bool)): Close the internalStream.
853 (Flush): Flush the interalStream.
854 (Write (char[], int, int)): Flush the internalStream in auto-flush-mode.
856 2002-03-19 Dan Lewis <dihlewis@yahoo.co.uk>
858 * FileStream.cs: Flush buffer before FileSetLength.
860 2002-02-28 Miguel de Icaza <miguel@ximian.com>
862 * Stream.cs (NullStream): Do not track position, this beast does
865 2002-03-15 Dan Lewis <dihlewis@yahoo.co.uk>
867 * SearchPattern.cs: New class. Glob matching code for Directory.
868 * Directory.cs: Changed to use SearchPattern instead of mono_glob_*()
870 2002/03/15 Nick Drochak <ndrochak@gol.com>
872 * DirectoryInfo.cs: Fixed the overloaded GetDirectories and GetFiles.
873 This code seemed to be copied from somewhere, and it was close,
874 but didn't match the docs. This was the last bit needed to get
875 NAnt to compile with our class libs.
877 2002-03-12 Duncan Mak <duncan@ximian.com>
879 * EndOfStreamException.cs:
880 * FileLoadException.cs:
881 * FileNotFoundException.cs:
882 * PathTooLongException.cs: Changed the base classes to IOException
883 instead of SystemException.
885 * IOException.cs: Added missing constructors.
887 2002-03-07 Nick Drochak <ndrochak@gol.com>
889 * FileMode.cs: Docs don't say this should be explicitly derived from
890 int, so just make it a normal Enum.
892 2002-03-02 Jason Diamond <jason@injektilo.org>
894 * StringReader.cs: Fixed off-by-one error in Peek() and Read().
896 2002-02-12 Nick Drochak <ndrochak@gol.com>
898 * PathTooLongException.cs: put it in the correct namespace
899 * EndOfStreamException.cs: put it in the correct namespace
901 Thu Jan 31 17:32:32 CET 2002 Paolo Molaro <lupus@ximian.com>
903 * Directory.cs: handle opendir() return NULL and absolute filenames.
905 2002-01-31 Duncan Mak <duncan@ximian.com>
907 * FileLoadException.cs:
908 * FileNotFoundException: Added missing bits for serialization.
910 Thu Jan 24 17:42:54 CET 2002 Paolo Molaro <lupus@ximian.com>
912 * Directory.cs: allow directories in GetFiles() mask.
914 2002-01-23 Miguel de Icaza <miguel@ximian.com>
916 * FileInfo.c (CopyTo, MoveTo): Implement.
918 * FileStream.cs: Add argument checking to the constructor.
920 * File.cs: Rewrote most of the file. Implement Copy, Open, Create,
921 OpenText, OpenWrite, Move. Made pending methods flagged as MonoTODO.
923 * Directory.cs (Delete): reimplement without using DirectoryInfo.
924 (Delete): Implement the recursive version.
925 (GetCreationTime, GetLastWriteTime, GetLastAccessTime): Implement.
927 (getNames): dead code removal.
929 * Path.cs: define an internal DirectorySeparatorStr that we use in
932 * Wrapper.cs: Updated to new version.
934 * DirectoryInfo (Delete): Implement using the Directory API.
936 * DirectoryInfo.cs (GetFiles, GetDirectories, GetFileSystemInfos,
937 Delete, Create, Parent, Exists, MoveTo): Implement.
939 * Directory.cs (GetListing): implement new utility function.
940 (GetDirectories): Implement.
941 (GetFileSystemEntries): Implement.
942 (GetFiles): Implement.
944 * CheckArgument.cs (Path): Do not allow null by default.
946 Tue Jan 22 22:53:23 CET 2002 Paolo Molaro <lupus@ximian.com>
948 * DirectoryInfo.cs, FileInfo.cs: do not use Debug from the system
951 2002-01-20 Nick Drochak <ndrochak@gol.com>
953 * SeekOrigin.cs: Added Serializable attribute.
955 2002-01-19 Duncan Mak <duncan@ximian.com>
957 * PathTooLongException.cs:
958 * EndOfStreamException.cs: Added to CVS.
960 Thu Jan 10 12:06:46 MST 2002 Matt Kimball <matt@kimball.net>
962 * BufferedStream.cs: Initial implemenation. The synchronous
963 methods for both reading and writing are implemented. I'll do the
964 asynchronous methods in a bit.
966 Wed Jan 9 16:04:39 MST 2002 Matt Kimball <matt@kimball.net>
968 * BinaryWriter.cs: Initial implementation. And it's all there.
970 * BinaryReader.cs: The constructor now uses the passed in encoding,
973 Wed Jan 9 13:54:28 MST 2002 Matt Kimball <matt@kimbal.net>
975 * BinaryReader.cs: Initial implementation. I think it's complete.
977 2002-01-04 Ravi Pratap <ravi@ximian.com>
979 * CheckArgument.cs, CheckPermission.cs, Directory.cs: MonoTODO
980 attribute decorations.
982 * DirectoryInfo.cs, File.cs, FileInfo.cs, FileSystemInfo.cs,
983 Path.cs, TextReader.cs, TextWriter.cs : Ditto.
985 * FileLoadException.cs, FileNotFoundException.cs, StreamReader.cs:
988 2001-12-11 Dick Porter <dick@ximian.com>
990 * FileStream.cs: Use handles rather than casting file descriptors.
991 Added Handle property.
993 Wed Nov 14 16:47:47 CET 2001 Paolo Molaro <lupus@ximian.com>
995 * CheckPermission.cs: disable ModeAccess() code: it's wrong.
996 * FileStream.cs: only trow an exception if the read failed in ReadByte().
997 * StreamReader.cs: implement Peek and Read.
998 * TextWriter.cs: CLSCompliant updates.
1000 2001-11-10 Sean MacIsaac <macisaac@ximian.com>
1002 * FileNotFoundException.cs: Added some constructors
1004 * Path.cs (GetFullPath): Fixed implementation
1006 Fri Nov 2 18:27:58 CET 2001 Paolo Molaro <lupus@ximian.com>
1008 * DirectoryNotFoundException.cs: implemented.
1010 Tue Sep 25 18:54:06 CEST 2001 Paolo Molaro <lupus@ximian.com>
1012 * File.cs: fix signatures of the Open() and OpenRead() functions
1015 Thu Sep 13 18:04:23 CEST 2001 Paolo Molaro <lupus@ximian.com>
1017 * FileLoadException.cs, FileNotFoundException.cs: added.
1019 2001-08-28 Dietmar Maurer <dietmar@ximian.com>
1021 * TextReader.cs: implemented the Read method
1023 * StreamReader.cs: impl. stubs
1025 * StreamWriter.cs: impl.
1027 * TextWriter.cs: implemented Write and WriteLine methods
1029 Sun Aug 26 23:01:41 CEST 2001 Paolo Molaro <lupus@ximian.com>
1031 * FileAccess.cs, FileMode.cs: change values to be compatible with
1034 Sun Aug 26 11:47:56 CEST 2001 Paolo Molaro <lupus@ximian.com>
1036 * IOException.cs: Implemented System.IO.Exception.
1038 2001-07-18 Michael Lambert <michaellambert@email.com>
1040 *SeekOrigin.cs.cs, FileShare.cs, FileMode.cs, FileAccess.cs: Add.
1042 2001-07-19 Marcin Szczepanski <marcins@zipworld.com.au>
1044 * System.IO.MemoryStream.cs: Added. Had quite a few cases of
1045 "LAMESPEC", but the tests work against the MS implementation so
1046 the major functions are right (ie. Read/Write/Seek). Some more
1047 tests required for the various constructors and exceptions.
1049 2001-07-16 Marcin Szczepanski <marcins@zipworld.com.au>
1051 * StringReader.cs, StringWriter.cs, TextReader.cs, TextWriter.cs:
1052 New class implemenations.
1054 * StringReaderTest.cs, StringWriterTest.cs: Test suite for the above.