1 2003-05-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3 * DirectoryInfo.cs: fixed bug #42991.
5 (CanonicalizePath): store the value of the trimmed input string. Make it
6 work with paths such as "/home/xxx/.".
8 2003-05-08 Ben Maurer <bmaurer@users.sourceforge.net>
10 (CanonicalizePath) Fixed bug #42631, which duplicated the
11 root part of the path under Windows.
13 2003-05-08 Ville Palo <vi64pa@kolumbus.fi>
15 * FileSystemInfo.cs: Added 1.1 properties LastAccessTimeUtc,
16 LastWriteTimeUtc and CreationTimeUtc
18 2003-05-07 Ben Maurer <bmaurer@users.sourceforge.net>
20 (GetPathRoot) Added support for UNC paths.
21 (CanonicalizePath) Added optimizations per Miguel's requests.
23 2003-05-06 Ville Palo <vi64pa@kolumbus.fi>
26 - Removed unusefull code.
27 - Added ObjectDisposedException to Position
28 - Dont flush if stream is allready closed.
29 - Flush throws also ObjectDisposedException.
31 - GetFileSystemEtries: ArgumentNullException if pattern is null
32 * DirectoryInfo.cs: Fixed little MoveTo () bug.
34 - Exists: If file does not exists when instance is created the
35 value of the Exists property does not change even if file is created
37 - Delete: If path is a directory UnauthorizedException is thrown.
38 - CopyTo: Now we can overwrite file if wanted.
40 - GetFullPath: Now throws exception when path is " ".
42 2003-05-04 Ben Maurer <bmaurer@users.sourceforge.net>
43 * Directory.cs (GetLogicalDrives) Marked as MonoTODO
44 because we need to implement the method on Windows.
46 (CanonicalizePath) Added new function to get
47 rid of . and .. in path names. Need to figure out what
48 other functions should call this.
49 (GetFullPath) Added call to the above function.
51 2003-05-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
54 (.ctor): fixed parameters passed to FileNotFoundException.
56 2003-04-25 Dietmar Maurer <dietmar@ximian.com>
58 * BinaryReader.cs (Read): make sure the buffer is big enough (fix
61 2003-04-24 Pedro MartÃnez Juliá <yoros@wanadoo.es>
63 * BufferedStream.cs: Test if it's possible to seek in a Stream
64 before access to Position. This prevents the exception thrown when
65 the stream is System.Net.Sockets.NetworkStream.
67 2003-04-22 Ville Palo <vi64pa@kolumbus.fi>
69 * Directory.cs: clean up --> performance improvment. Some exceptions
70 are now checked in File.cs.
71 * File.cs: Implemented Get/SetXXXTimeUtc () methods. Some bugfixes.
73 2003-04-21 Ville Palo <vi64pa@kolumbus.fi>
75 * Directory.cs: lots of fixes.
76 - Added GetXXXtimeUtc () (v1.1) methods.
77 - Added SetXXXtimeUtc () (v1.1) methods.
79 2003-04-20 Igor Nosyryev <nosyryev@attbi.com>
81 * StringReader.cs (Read): Increment nextChar by charsToRead
82 instead of count, that will guarantee that the next time the
83 method is called, it will return 0 on an empty string rather than
86 2003-04-19 Ville Palo <vi64pa@kolumbus.fi>
88 * BufferedStream.cs: Some fixes, mostly throwing exceptions.
89 * MemoryStream.cs: Changed the order of exception checking
90 * StringReader.cs: little clean up
92 2003-04-14 Ville Palo <vi64pa@kolumbus.fi>
94 * BinaryWriter.cs: Fixed decimal writing and lots of
95 ObjectDisposedExceptions added.
97 2003-04-13 Ville Palo <vi64pa@kolumbus.fi>
99 * BinaryReader.cs: Fix to ReadDecimal() method.
101 2003-04-13 Ville Palo <vi64pa@kolumbus.fi>
103 * StringReader.cs: Added some ObjectDisposedExceptions.
104 * StringWriter.cs: Added some ObjectDisposedExceptions.
105 * BinaryReader.cs: Added some ObjectDisposedExceptions.
107 2003-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
109 * FileStream.cs: fixed the windows build. This is an mcs bug. I'll
112 2003-04-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
114 * FileStream.cs: fixed bug #40182 and made more unit test pass.
116 2003-04-11 Ville Palo <vi64pa@kolumbus.fi>
118 * FileStream.cs: Added new methods Lock () and Unlock ()
120 2003-04-11 Ville Palo <vi64pa@kolumbus.fi>
122 * StringReader.cs: Throws exceptions if constructor parameter is null.
124 2003-04-11 Ville Palo <vi64pa@kolumbus.fi>
126 * StringWriter.cs: Now throws an exception if StringBuilder parameter
129 2003-04-05 Miguel de Icaza <miguel@ximian.com>
131 * TextWriter.cs: Implemented Synchronized method.
133 * TextReader.cs: Implemented Synchronized method.
135 2003-04-04 Miguel de Icaza <miguel@ximian.com>
137 * FileStream.cs (Read, ReadByte, Seek): throw
138 ObjectDisposedException if the handle has been released.
140 (Read): Throw exceptions specified in the spec.
142 (Read, Write, ReadSegment, WriteSegment): There is no requirement for any
143 instance methods of FileStream to be thread safe, so remove all
144 the calls to lock on the object
146 2003-03-31 Nick Drochak <ndrochak@gol.com>
148 * Path.cs (GetDirectoryName): Throw proper execption when path is empty.
150 2003-03-20 Lluis Sanchez Gual <lluis@ideary.com>
152 * FileNotFoundException.cs: fixed serialization bug.
154 2003-03-18 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
156 * StringWriter.cs : don't release internalString on Dispose().
158 2003-03-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
160 * StreamReader.cs: fixed bug #39280.
162 2003-03-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
164 * Directory.cs: readded mkdir -p behavior. Thanks to kiwnix for
167 2003-03-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
169 * MemoryStream.cs: general fixes and reformatted. Passes all tests in
170 the new MemoryStreamTest.
172 2003-03-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
174 * MemoryStream.cs: undo my bogus fix in ToArray. Allow GetBuffer and
175 ToArray even after closing the stream.
177 2003-03-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
180 (Move): don't use File.Move.
181 * DirectoryInfo.cs: fixed Name property.
185 2003-03-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
187 * DirectoryInfo.cs: changed ToString to match MS behavior.
188 * Path.cs: further fixes to GetDirectoryName to return null in the
189 same cases that MS does.
193 2003-03-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
195 * Path.cs: fixed a couple of bugs reported in #35906.
197 2003-03-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
199 * Directory.cs: fixed bugs #38939 and #38940. No need for separate
200 unix/windows/unc shares code paths.
202 2003-02-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
204 * File.cs: fix by Elan Feingold <efeingold@mn.rr.com> for
205 SetCreationTime, SetLastAccessTime and SetLastWriteTime.
207 2003-02-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
210 (ToArray): return only the portion of the buffer that contains
211 data, not the whole buffer. (note: this makes XmlDocument.Load work
212 again with documents that have a <?xml without the 'encoding'
213 attribute, which makes gtk-sharp generator work again).
215 2003-02-25 Nick Drochak <ndrochak@gol.com>
217 * File.cs (GetCreationTime): Throw proper execption when path is not
220 Tue Feb 25 11:55:35 CET 2003 Paolo Molaro <lupus@ximian.com>
222 * MemoryStream.cs: make it behave sanely when the stream is
223 incrementally expanded.
225 2003-02-21 Dick Porter <dick@ximian.com>
227 * FileStream.cs: Use locks around buffer manipulations. Fixes bug
230 2003-02-18 Dick Porter <dick@ximian.com>
232 * FileStream.cs: Make FileMode.Append work, and check for Seeking
233 back over old data (undocumented ms behaviour, throws an exception
234 if you try). Fixes bug 35975.
236 2003-02-17 Dick Porter <dick@ximian.com>
238 * FileStream.cs: Don't close the handle if the stream doesn't own
239 it. Patch from Raymond Penners (raymond@dotsphinx.com), bug
242 2003-02-14 Zoltan Varga <vargaz@freemail.hu>
244 * FileStream.cs (Write): flush after writing the last segment as well.
246 2003-02-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
249 (ReadLine): fixed the case when the string ends with a '\n'.
251 2003-02-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
253 * MemoryStream.cs: create the buffer of the specified capacity.
255 2003-01-31 Patrik Torstensson
257 * MemoryStream.cs: use BlockCopyInternal instead of Array.Copy, this is
258 the same way as MS does it (performance improvement)
260 2003-01-29 Zoltan Varga <vargaz@freemail.hu>
262 * Directory.cs (GetFileSystemEntries): moved error handling to the
263 correct instance of GetFileSystemEntries so all callers can enjoy it.
265 2003-01-28 Zoltan Varga <vargaz@freemail.hu>
267 * File.cs: add error handling to Get...Time methods.
269 2003-01-26 Zoltan Varga <vargaz@freemail.hu>
271 * Directory.cs: fix GetParent so it actually works.
273 2003-01-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
275 * Path.cs: fixlet to ChangeExtension for the case when the path is
278 2003-01-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
280 * BufferedStream.cs: don't try to write a 0 sized array on when
285 2003-01-18 Jonathan Pryor <jonpryor@vt.edu>
287 * FileStream.cs: Add IsAsync property. (Documented in "C# In A Nutshell".)
289 2003-01-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
291 * MemoryStream.cs: fixed bug #36319.
293 2002-12-16 Eduardo Garcia Cebollero <kiwnix@yahoo.es>
295 * Directory.cs: Some fixes to SMB shares handling, and not compiling
296 with csc, mcs compiles it correctly (mcs bug 35652)
298 2002-12-14 Eduardo Garcia Cebollero <kiwnix@yahoo.es>
300 * Directory.cs: Some fixes related to correct some exceptions thrown
302 2002-12-11 Eduardo Garcia Cebollero <kiwnix@yahoo.es>
304 * Directory.cs: Some Exceptions added, fixed GetParent(),
305 CreateDirectory() should work with unix, native windows and
306 windows samba shares. Converted end-lines from dos-mode to unix-mode
308 2002-12-08 Eduardo Garcia Cebollero <kiwnix@yahoo.es>
310 * Directory.cs: CreateDirectory works now with Absolute paths
311 too, not only with relative ones.
313 2002-12-07 Peter Williams <peterw@ximian.com>
315 * Directory.cs: Don't use the uninitialized pathsumm here.
316 Don't try and create "" if we're using an absolute path.
318 2002-12-07 Eduardo Garcia Cebollero <kiwnix@yahoo.es>
320 * Directory.cs: Now the creation of a new directory works recursively
321 it will make parents as needed.
323 2002-11-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
325 * BufferedStream.cs: applied patch from <carlosga@telefonica.net> that
328 Tue Nov 19 13:01:22 CET 2002 Paolo Molaro <lupus@ximian.com>
330 * StreamWriter.cs: output the encoding preamble at the start of a
333 2002-11-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
335 * StreamReader.cs: Changed all Encoding.UTF8 to Encoding.UTF8Unmarked.
337 2002-11-06 Miguel de Icaza <miguel@ximian.com>
339 * StreamWriter.cs: Changed all Encoding.UTF8 to Encoding.UTF8Unmarked.
341 2002-10-31 Dick Porter <dick@ximian.com>
343 * FileStream.cs: Fix buffering properly this time. Also kludge
344 around broken pipe errors, treating them as EOF instead of
345 throwing an IO exception.
347 * MonoIO.cs: Return the error status in a parameter, as the
348 GetLastError() value has long since been blown away if we try and
349 look it up in a subsequent internal call invocation.
354 * Directory.cs: MonoIO methods now have an error parameter
356 2002-10-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
358 * TextReader.cs: implemented ReadBlock ().
360 2002-10-30 Miguel de Icaza <miguel@ximian.com>
362 * StreamWriter.cs: Ditto for Null stream.
364 * BinaryReader.cs: Use Unmarked here too.
366 * BinaryWriter.cs: Use the UTF8Unmarker encoding by default, this
369 2002-10-23 Dick Porter <dick@ximian.com>
371 * FileStream.cs: Implemented CanSeek, and used it around all the
372 calls to MonoIO.Seek. Fixed buffering in Read() so that it
373 doesn't block forever on short reads.
375 * MonoFileType.cs: New enum for GetFileType
377 * MonoIO.cs: Added GetFileType
379 2002-10-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
381 * StreamReader.cs: ReadLine now treats a \r not followed by a \n as a
382 \n (this is what MS does).
384 2002-10-18 Dick Porter <dick@ximian.com>
386 * FileStream.cs: SeekOrigin.End still calculates the offset from
387 the end of the file with positive values extending the length.
390 2002-10-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
392 * Path.cs: some cleanup. Thanks to Martin Aliger.
394 2002-10-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
396 * FileStream.cs: throw an exception if trying to open a directory.
397 Thanks to Martin Aliger.
399 2002-10-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
401 * Path.cs: fixes bug #28046.
403 2002-09-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
405 * StreamReader.cs: give more information when wrong parameters passed.
407 2002-09-21 Miguel de Icaza <miguel@ximian.com>
409 * FileStream.cs: Do not call FSync on the file.
411 2002-09-16 Miguel de Icaza <miguel@ximian.com>
413 * TextWriter.cs (Null): The Null field should be an instance of a
414 TextWriter class that does nothing, so it is an instance of the
415 NullTextWriter class.
417 2002-09-16 Nick Drochak <ndrochak@gol.com>
419 * MemoryStream.cs (Close): Don't throw an exception if the stream
422 2002-09-15 Miguel de Icaza <miguel@ximian.com>
424 * FileStream.cs (Dispose): Call FlushBuffer(), and not Flush, as
427 The API docs show no explicit mention that Flush() should even do
428 an fsync, I am thinking that we should drop that from the
431 2002-09-09 Miguel de Icaza <miguel@ximian.com>
433 * StreamWriter.cs: When no encoding is provided, create an
434 encoding without markers, this is what MS does.
436 2002-09-06 Miguel de Icaza <miguel@ximian.com>
438 * StreamReader.cs: Implement detection of byte marks and skipping
439 of byte marks at the beginning of the stream.
441 (ReadToEnd): Use buffered read instead of char-by-char
444 Correct the default arguments for creating the StreamReader.
446 2002-08-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
448 * CheckArgument.cs: fixed check for empty string.
449 * Path.cs: various fixes. It passes all the tests in new PathTest.
451 2002-08-29 Duncan Mak <duncan@ximian.com>
453 * StreamWriter.cs: Set DisposedAlready after calling flush. Fixes
456 2002-08-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
465 * TextWriter.cs: IDisposable fixes.
467 2002-08-24 Miguel de Icaza <miguel@ximian.com>
469 * StreamReader.cs: Removed TODOs, as the code seems to be
472 * Path.cs (GetTempFileName): Make this routine atomic by not
473 testing and then creating, but using the create call to ensure
474 that we own the filename.
476 2002-08-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
478 * FileLoadException.cs: implemented ToString.
480 * StreamWriter.cs: added Null field and implemented Write (char) and
483 2002-08-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
485 * StreamReader.cs: implemented NullStreamReader.
487 2002-08-21 Miguel de Icaza <miguel@ximian.com>
489 * Path.cs (GetDirectoryName): Fix for filenames with size = 1
491 * File.cs: Removed all references that threw exceptions when the
492 paths contains a colon, as this is a valid part of an identifier
495 Everywhere: The String.Empty return from GetDirectoryName means
496 that there is no directory information about the path.
498 2002-08-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
500 * FileNotFoundException.cs: use Message and InnerException from base
501 class. Changed Message and ToString ().
503 2002-08-19 Dick Porter <dick@ximian.com>
505 * BinaryWriter.cs: The length of a string is counted in bytes, not
508 2002-08-18 Dick Porter <dick@ximian.com>
510 * BinaryReader.cs: Fixed buffering
512 2002-08-09 Nick Drochak <ndrochak@gol.com>
514 * BinaryReader.cs: added virtual to Dispose(bool).
516 2002-08-03 Jason Diamond <jason@injektilo.org>
518 * StringWriter.cs: Return UnicodeEncoding for Encoding property.
520 2002-08-03 Jason Diamond <jason@injektilo.org>
522 * StreamWriter.cs: Use GetByteCount() to get exact length instead
523 of GetMaxByteCount when converting chars to bytes.
525 2002-07-31 Duncan Mak <duncan@ximian.com>
528 (Dispose): Added and implmented.
531 (Dispose): Fixed visibility.
532 (Initialize): Fixed visibility, made internal.
535 (Dispose): Fixed visibility.
537 2002-07-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
540 (Create): allow file names without path.
542 Fri Jul 26 15:45:04 CEST 2002 Paolo Molaro <lupus@ximian.com>
544 * FileStream.cs: patch from erik@bagfors.nu to add
545 Name property support.
547 2002-07-20 Dick Porter <dick@ximian.com>
549 * MonoIO.cs: Added icall to CreatePipe
551 2002-07-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
553 * FileInfo.cs: fixes buglet #27940
555 2002-07-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
557 * Path.cs: removed unneeded line from GetExtension.
559 2002-07-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
562 (.ctor): call MonoIO.GetException with the file name.
564 2002-07-02 Mike Kestner <mkestner@speakeasy.net>
566 * StreamReader.cs: Guard against ^\n lines as pointed out by Gonzalo.
568 2002-07-02 Mike Kestner <mkestner@speakeasy.net>
570 * StreamReader.cs: Revert the last Peek change and fix the ReadLine
571 end of line detection code instead.
573 2002-07-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
576 (Peek): no need to have seek capabilitites.
578 2002-06-17 Dietmar Maurer <dietmar@ximian.com>
580 * Path.cs (ChangeExtension): handle some special cases (fixes bug #25319)
582 * File.cs (Delete): only call Directory.Exists() if DirName != ""
584 2002-06-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
586 * Directory.cs: fixed bug #26133 and also test if the directory exist
587 before performing the search.
589 2002-06-12 Nick Drochak <ndrochak@gol.com>
591 * StringReader.cs (ReadLine): Return null when we get to end of the
594 2002-05-22 Lawrence Pit <loz@cable.a2000.nl>
596 * StreamWriter.cs: added ability to write null value
598 2002-05-19 Lawrence Pit <loz@cable.a2000.nl>
600 * Stream.cs: NullStream.ReadByte now returns -1 instead of 0 to
601 prevent endless loops.
603 2002-05-17 Dan Lewis <dihlewis@yahoo.co.uk>
605 * FileStream.cs: Enforce lower bound on buffer size.
607 2002-05-16 Piers Haken <piersh@friskit.com>
609 * Stream.cs: Implement synchronous {Begin|End}{Read|Write}() methods.
611 2002-05-17 Nick Drochak <ndrochak@gol.com>
613 * StreamWriter.cs: Implement buffering. Also implemented dispose
614 pattern as recommended by the MS docs. Must call Close() now
615 to ensure the buffer is flushed.
617 2002-05-15 Nick Drochak <ndrochak@gol.com>
619 * Path.cs (GetDirectoryName): Return String.Empty if there is no
622 * StreamReader.cs: Add some parameter checking on file names.
624 * StreamWriter.cs: Add some parameter checking on file names.
626 2002-05-14 Nick Drochak <ndrochak@gol.com>
628 * File.cs: Add parameter checks to most methods. Not completely done,
629 but all current unit tests pass.
631 * Path.cs: Implement GetTempFileName().
633 2002-05-10 Nick Drochak <ndrochak@gol.com>
635 * StreamWriter.cs (Flush): Throw proper exception if internal stream
636 has already been closed when we try to flush.
638 2002/05/10 Nick Drochak <ndrochak@gol.com>
640 * FileNotFoundException.cs (ToString): Don't try to use the inner
641 exception, because it might be null. Use the message instead.
643 2002-05-09 Nick Drochak <ndrochak@gol.com>
645 * File.cs (Delete): Do not throw an exception if the file does not
648 2002-05-08 Mike Gray <mikeg@mikegray.org>
650 * File.cs: According to ECMA spec and MS docs Copy(src, dest)
651 should not overwrite dest by default.
653 2002-05-08 Nick Drochak <ndrochak@gol.com>
655 * StreamWriter.cs: Add paramter check to constructors and throw
656 exceptions where appropriate.
658 Tue May 7 11:47:46 CEST 2002 Paolo Molaro <lupus@ximian.com>
660 * StreamReader.cs: return the number of chars read even if we diddn't
661 fill the whole buffer (makes Sergey's ilasm work with mono).
663 2002-05-07 Mike Gray <mikeg_us@hotmail.com>
665 * FileInfo.cs (Create): Implement missing method.
667 2002-05-07 Mike Gray <mikeg_us@hotmail.com>
669 * File.cs: Implemented CreateText method, and fixed dst compares
670 to compare against "" instead of null twice.
672 2002-05-05 Nick Drochak <ndrochak@gol.com>
674 * StreamReader.cs: Throw exceptions where needed. Changed Null field to
675 use new internal class since null cannot be passed to constructor
676 anymore. Also, fix a coule of small bugs.
678 2002-05-03 Nick Drochak <ndrochak@gol.com>
680 * MemoryStream.cs: Refrain from allocating array until the space is
681 really needed. This fixes a bug in the Length property when the
682 constructor without the byte array is used.
684 2002-05-01 Duncan Mak <duncan@ximian.com>
686 * DirectoryNotFoundException.cs (constructor): Added missing
687 serialization constructor.
689 2002-04-30 Duncan Mak <duncan@ximian.com>
691 * FileLoadException.cs (constructors): Added missing (string,
692 string) ctor, as well as (string, string, Exception) ctor.
694 (Message): Added more info to the error message
696 (ToString): Added. We'll need to add the StackTrace stuff when
699 * FileShare.cs: Add a missing field, Inheritable.
701 * TextReader.cs: Renamed Synchronised method to Synchronized.
703 * TextWriter.cs: Renamed Synchronised method to Synchronized.
704 Renamed protected member coreNewLine to CoreNewLine.
706 2002-04-30 Sergey Chaban <serge@wildwestsoftware.com>
708 * BinaryReader.cs: Allocate buffer before its first use.
709 Handle end of stream properly. Methods to read native types
710 (ReadInt* etc.) are little-endian (see Compact Framework docs).
712 * BinaryWriter.cs: Store data in little-endian format.
713 Use internal buffer for conversions.
715 2002-03-31 Dick Porter <dick@ximian.com>
717 * Directory.cs: Strip out "." and ".." from returned list
719 * FileAttributes.cs: Get the right enum values
721 2002-03-28 Dietmar Maurer <dietmar@ximian.com>
723 * TextWriter.cs (write): added check for null
725 2002-03-28 Dan Lewis <dihlewis@yahoo.co.uk>
727 * Directory.cs: Throws DirectoryNotFoundException.
728 * MonoIO.cs: Fixed to work around enum problem.
730 2002-03-27 Dan Lewis <dihlewis@yahoo.co.uk>
732 * StreamReader.cs: Implemented ReadLine() and ReadEnd().
734 2002-03-27 Dan Lewis <dihlewis@yahoo.co.uk>
736 * Directory.cs, File.cs, FileSystemInfo.cs, FileInfo.cs,
737 DirectoryInfo.cs, Path.cs: Modified to use MonoIO class instead of
738 wrapper and PAL classes.
740 * MonoIO.cs, MonoIOStat.cs, MonoIOError.cs: Added.
742 2002-03-25 Mike Kestner <mkestner@speakeasy.net>
744 * MemoryStream.cs (Read): Fixed bug in exception throw.
746 2002-03-24 Mike Kestner <mkestner@speakeasy.net>
748 * StreamReader.cs (ReadBuffer): Fix buffer merging bugs.
750 2002-03-23 Martin Baulig <martin@gnome.org>
752 * StreamReader.cs: Always do buffered reading, use 4k blocks.
753 (Read (char[], int, int)): Implemented.
754 (DiscardBufferedData): Implemented.
756 2002-03-21 Mike Kestner <mkestner@speakeasy.net>
758 * StreamReader.cs : Fill out, add buffering, and use encoding.
760 2002-03-19 Martin Baulig <martin@gnome.org>
762 * StreamWriter.cs (StreamWriter (string)): The default is to override
763 the file, not to append to it.
764 (StreamWriter (string path, bool append)): When appending, seek to the
765 end of the file, otherwise truncate the file to zero length.
766 (Dispose (bool)): Close the internalStream.
767 (Flush): Flush the interalStream.
768 (Write (char[], int, int)): Flush the internalStream in auto-flush-mode.
770 2002-03-19 Dan Lewis <dihlewis@yahoo.co.uk>
772 * FileStream.cs: Flush buffer before FileSetLength.
774 2002-02-28 Miguel de Icaza <miguel@ximian.com>
776 * Stream.cs (NullStream): Do not track position, this beast does
779 2002-03-15 Dan Lewis <dihlewis@yahoo.co.uk>
781 * SearchPattern.cs: New class. Glob matching code for Directory.
782 * Directory.cs: Changed to use SearchPattern instead of mono_glob_*()
784 2002/03/15 Nick Drochak <ndrochak@gol.com>
786 * DirectoryInfo.cs: Fixed the overloaded GetDirectories and GetFiles.
787 This code seemed to be copied from somewhere, and it was close,
788 but didn't match the docs. This was the last bit needed to get
789 NAnt to compile with our class libs.
791 2002-03-12 Duncan Mak <duncan@ximian.com>
793 * EndOfStreamException.cs:
794 * FileLoadException.cs:
795 * FileNotFoundException.cs:
796 * PathTooLongException.cs: Changed the base classes to IOException
797 instead of SystemException.
799 * IOException.cs: Added missing constructors.
801 2002-03-07 Nick Drochak <ndrochak@gol.com>
803 * FileMode.cs: Docs don't say this should be explicitly derived from
804 int, so just make it a normal Enum.
806 2002-03-02 Jason Diamond <jason@injektilo.org>
808 * StringReader.cs: Fixed off-by-one error in Peek() and Read().
810 2002-02-12 Nick Drochak <ndrochak@gol.com>
812 * PathTooLongException.cs: put it in the correct namespace
813 * EndOfStreamException.cs: put it in the correct namespace
815 Thu Jan 31 17:32:32 CET 2002 Paolo Molaro <lupus@ximian.com>
817 * Directory.cs: handle opendir() return NULL and absolute filenames.
819 2002-01-31 Duncan Mak <duncan@ximian.com>
821 * FileLoadException.cs:
822 * FileNotFoundException: Added missing bits for serialization.
824 Thu Jan 24 17:42:54 CET 2002 Paolo Molaro <lupus@ximian.com>
826 * Directory.cs: allow directories in GetFiles() mask.
828 2002-01-23 Miguel de Icaza <miguel@ximian.com>
830 * FileInfo.c (CopyTo, MoveTo): Implement.
832 * FileStream.cs: Add argument checking to the constructor.
834 * File.cs: Rewrote most of the file. Implement Copy, Open, Create,
835 OpenText, OpenWrite, Move. Made pending methods flagged as MonoTODO.
837 * Directory.cs (Delete): reimplement without using DirectoryInfo.
838 (Delete): Implement the recursive version.
839 (GetCreationTime, GetLastWriteTime, GetLastAccessTime): Implement.
841 (getNames): dead code removal.
843 * Path.cs: define an internal DirectorySeparatorStr that we use in
846 * Wrapper.cs: Updated to new version.
848 * DirectoryInfo (Delete): Implement using the Directory API.
850 * DirectoryInfo.cs (GetFiles, GetDirectories, GetFileSystemInfos,
851 Delete, Create, Parent, Exists, MoveTo): Implement.
853 * Directory.cs (GetListing): implement new utility function.
854 (GetDirectories): Implement.
855 (GetFileSystemEntries): Implement.
856 (GetFiles): Implement.
858 * CheckArgument.cs (Path): Do not allow null by default.
860 Tue Jan 22 22:53:23 CET 2002 Paolo Molaro <lupus@ximian.com>
862 * DirectoryInfo.cs, FileInfo.cs: do not use Debug from the system
865 2002-01-20 Nick Drochak <ndrochak@gol.com>
867 * SeekOrigin.cs: Added Serializable attribute.
869 2002-01-19 Duncan Mak <duncan@ximian.com>
871 * PathTooLongException.cs:
872 * EndOfStreamException.cs: Added to CVS.
874 Thu Jan 10 12:06:46 MST 2002 Matt Kimball <matt@kimball.net>
876 * BufferedStream.cs: Initial implemenation. The synchronous
877 methods for both reading and writing are implemented. I'll do the
878 asynchronous methods in a bit.
880 Wed Jan 9 16:04:39 MST 2002 Matt Kimball <matt@kimball.net>
882 * BinaryWriter.cs: Initial implementation. And it's all there.
884 * BinaryReader.cs: The constructor now uses the passed in encoding,
887 Wed Jan 9 13:54:28 MST 2002 Matt Kimball <matt@kimbal.net>
889 * BinaryReader.cs: Initial implementation. I think it's complete.
891 2002-01-04 Ravi Pratap <ravi@ximian.com>
893 * CheckArgument.cs, CheckPermission.cs, Directory.cs: MonoTODO
894 attribute decorations.
896 * DirectoryInfo.cs, File.cs, FileInfo.cs, FileSystemInfo.cs,
897 Path.cs, TextReader.cs, TextWriter.cs : Ditto.
899 * FileLoadException.cs, FileNotFoundException.cs, StreamReader.cs:
902 2001-12-11 Dick Porter <dick@ximian.com>
904 * FileStream.cs: Use handles rather than casting file descriptors.
905 Added Handle property.
907 Wed Nov 14 16:47:47 CET 2001 Paolo Molaro <lupus@ximian.com>
909 * CheckPermission.cs: disable ModeAccess() code: it's wrong.
910 * FileStream.cs: only trow an exception if the read failed in ReadByte().
911 * StreamReader.cs: implement Peek and Read.
912 * TextWriter.cs: CLSCompliant updates.
914 2001-11-10 Sean MacIsaac <macisaac@ximian.com>
916 * FileNotFoundException.cs: Added some constructors
918 * Path.cs (GetFullPath): Fixed implementation
920 Fri Nov 2 18:27:58 CET 2001 Paolo Molaro <lupus@ximian.com>
922 * DirectoryNotFoundException.cs: implemented.
924 Tue Sep 25 18:54:06 CEST 2001 Paolo Molaro <lupus@ximian.com>
926 * File.cs: fix signatures of the Open() and OpenRead() functions
929 Thu Sep 13 18:04:23 CEST 2001 Paolo Molaro <lupus@ximian.com>
931 * FileLoadException.cs, FileNotFoundException.cs: added.
933 2001-08-28 Dietmar Maurer <dietmar@ximian.com>
935 * TextReader.cs: implemented the Read method
937 * StreamReader.cs: impl. stubs
939 * StreamWriter.cs: impl.
941 * TextWriter.cs: implemented Write and WriteLine methods
943 Sun Aug 26 23:01:41 CEST 2001 Paolo Molaro <lupus@ximian.com>
945 * FileAccess.cs, FileMode.cs: change values to be compatible with
948 Sun Aug 26 11:47:56 CEST 2001 Paolo Molaro <lupus@ximian.com>
950 * IOException.cs: Implemented System.IO.Exception.
952 2001-07-18 Michael Lambert <michaellambert@email.com>
954 *SeekOrigin.cs.cs, FileShare.cs, FileMode.cs, FileAccess.cs: Add.
956 2001-07-19 Marcin Szczepanski <marcins@zipworld.com.au>
958 * System.IO.MemoryStream.cs: Added. Had quite a few cases of
959 "LAMESPEC", but the tests work against the MS implementation so
960 the major functions are right (ie. Read/Write/Seek). Some more
961 tests required for the various constructors and exceptions.
963 2001-07-16 Marcin Szczepanski <marcins@zipworld.com.au>
965 * StringReader.cs, StringWriter.cs, TextReader.cs, TextWriter.cs:
966 New class implemenations.
968 * StringReaderTest.cs, StringWriterTest.cs: Test suite for the above.