1 2003-06-02 Nick Drochak <ndrochak@gol.com>
3 * FileInfo.cs (MoveTo): Throw exceptions when dest exists, and check
6 2003-05-27 Lluis Sanchez Gual <lluis@ximian.com>
8 * BinaryReader.cs: Stream don't need to be seekable to use PeekChar.
10 2003-05-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12 * Path.cs: fixed bug #42631.
14 2003-05-22 Zoltan Varga <vargaz@freemail.hu>
16 * File.cs (Move): Allow moving of directories.
17 Fix 'destination is a directory' test.
19 2003-05-21 Ben Maurer <bmaurer@users.sourceforge.net>
21 * StringWriter.cs: Fixed bug #43431: "StringWriter
22 .ctor(CultureInfo) does not create a new StringBuilder ()"
24 2003-05-11 Zoltan Varga <vargaz@freemail.hu>
26 * FileStream.cs (FlushBuffer): After a flush, the buffer is
27 advanced by buf_offset bytes, not buf_length bytes.
29 2003-05-16 Dick Porter <dick@ximian.com>
31 * MonoIO.cs: Implement GetTempPath
33 2003-05-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
35 * DirectoryInfo.cs: fixed bug #42991.
37 (CanonicalizePath): store the value of the trimmed input string. Make it
38 work with paths such as "/home/xxx/.".
40 2003-05-08 Ben Maurer <bmaurer@users.sourceforge.net>
42 (CanonicalizePath) Fixed bug #42631, which duplicated the
43 root part of the path under Windows.
45 2003-05-08 Ville Palo <vi64pa@kolumbus.fi>
47 * FileSystemInfo.cs: Added 1.1 properties LastAccessTimeUtc,
48 LastWriteTimeUtc and CreationTimeUtc
50 2003-05-07 Ben Maurer <bmaurer@users.sourceforge.net>
52 (GetPathRoot) Added support for UNC paths.
53 (CanonicalizePath) Added optimizations per Miguel's requests.
55 2003-05-06 Ville Palo <vi64pa@kolumbus.fi>
58 - Removed unusefull code.
59 - Added ObjectDisposedException to Position
60 - Dont flush if stream is allready closed.
61 - Flush throws also ObjectDisposedException.
63 - GetFileSystemEtries: ArgumentNullException if pattern is null
64 * DirectoryInfo.cs: Fixed little MoveTo () bug.
66 - Exists: If file does not exists when instance is created the
67 value of the Exists property does not change even if file is created
69 - Delete: If path is a directory UnauthorizedException is thrown.
70 - CopyTo: Now we can overwrite file if wanted.
72 - GetFullPath: Now throws exception when path is " ".
74 2003-05-04 Ben Maurer <bmaurer@users.sourceforge.net>
75 * Directory.cs (GetLogicalDrives) Marked as MonoTODO
76 because we need to implement the method on Windows.
78 (CanonicalizePath) Added new function to get
79 rid of . and .. in path names. Need to figure out what
80 other functions should call this.
81 (GetFullPath) Added call to the above function.
83 2003-05-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
86 (.ctor): fixed parameters passed to FileNotFoundException.
88 2003-04-25 Dietmar Maurer <dietmar@ximian.com>
90 * BinaryReader.cs (Read): make sure the buffer is big enough (fix
93 2003-04-24 Pedro MartÃnez Juliá <yoros@wanadoo.es>
95 * BufferedStream.cs: Test if it's possible to seek in a Stream
96 before access to Position. This prevents the exception thrown when
97 the stream is System.Net.Sockets.NetworkStream.
99 2003-04-22 Ville Palo <vi64pa@kolumbus.fi>
101 * Directory.cs: clean up --> performance improvment. Some exceptions
102 are now checked in File.cs.
103 * File.cs: Implemented Get/SetXXXTimeUtc () methods. Some bugfixes.
105 2003-04-21 Ville Palo <vi64pa@kolumbus.fi>
107 * Directory.cs: lots of fixes.
108 - Added GetXXXtimeUtc () (v1.1) methods.
109 - Added SetXXXtimeUtc () (v1.1) methods.
111 2003-04-20 Igor Nosyryev <nosyryev@attbi.com>
113 * StringReader.cs (Read): Increment nextChar by charsToRead
114 instead of count, that will guarantee that the next time the
115 method is called, it will return 0 on an empty string rather than
116 throwing an exception
118 2003-04-19 Ville Palo <vi64pa@kolumbus.fi>
120 * BufferedStream.cs: Some fixes, mostly throwing exceptions.
121 * MemoryStream.cs: Changed the order of exception checking
122 * StringReader.cs: little clean up
124 2003-04-14 Ville Palo <vi64pa@kolumbus.fi>
126 * BinaryWriter.cs: Fixed decimal writing and lots of
127 ObjectDisposedExceptions added.
129 2003-04-13 Ville Palo <vi64pa@kolumbus.fi>
131 * BinaryReader.cs: Fix to ReadDecimal() method.
133 2003-04-13 Ville Palo <vi64pa@kolumbus.fi>
135 * StringReader.cs: Added some ObjectDisposedExceptions.
136 * StringWriter.cs: Added some ObjectDisposedExceptions.
137 * BinaryReader.cs: Added some ObjectDisposedExceptions.
139 2003-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
141 * FileStream.cs: fixed the windows build. This is an mcs bug. I'll
144 2003-04-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
146 * FileStream.cs: fixed bug #40182 and made more unit test pass.
148 2003-04-11 Ville Palo <vi64pa@kolumbus.fi>
150 * FileStream.cs: Added new methods Lock () and Unlock ()
152 2003-04-11 Ville Palo <vi64pa@kolumbus.fi>
154 * StringReader.cs: Throws exceptions if constructor parameter is null.
156 2003-04-11 Ville Palo <vi64pa@kolumbus.fi>
158 * StringWriter.cs: Now throws an exception if StringBuilder parameter
161 2003-04-05 Miguel de Icaza <miguel@ximian.com>
163 * TextWriter.cs: Implemented Synchronized method.
165 * TextReader.cs: Implemented Synchronized method.
167 2003-04-04 Miguel de Icaza <miguel@ximian.com>
169 * FileStream.cs (Read, ReadByte, Seek): throw
170 ObjectDisposedException if the handle has been released.
172 (Read): Throw exceptions specified in the spec.
174 (Read, Write, ReadSegment, WriteSegment): There is no requirement for any
175 instance methods of FileStream to be thread safe, so remove all
176 the calls to lock on the object
178 2003-03-31 Nick Drochak <ndrochak@gol.com>
180 * Path.cs (GetDirectoryName): Throw proper execption when path is empty.
182 2003-03-20 Lluis Sanchez Gual <lluis@ideary.com>
184 * FileNotFoundException.cs: fixed serialization bug.
186 2003-03-18 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
188 * StringWriter.cs : don't release internalString on Dispose().
190 2003-03-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
192 * StreamReader.cs: fixed bug #39280.
194 2003-03-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
196 * Directory.cs: readded mkdir -p behavior. Thanks to kiwnix for
199 2003-03-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
201 * MemoryStream.cs: general fixes and reformatted. Passes all tests in
202 the new MemoryStreamTest.
204 2003-03-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
206 * MemoryStream.cs: undo my bogus fix in ToArray. Allow GetBuffer and
207 ToArray even after closing the stream.
209 2003-03-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
212 (Move): don't use File.Move.
213 * DirectoryInfo.cs: fixed Name property.
217 2003-03-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
219 * DirectoryInfo.cs: changed ToString to match MS behavior.
220 * Path.cs: further fixes to GetDirectoryName to return null in the
221 same cases that MS does.
225 2003-03-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
227 * Path.cs: fixed a couple of bugs reported in #35906.
229 2003-03-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
231 * Directory.cs: fixed bugs #38939 and #38940. No need for separate
232 unix/windows/unc shares code paths.
234 2003-02-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
236 * File.cs: fix by Elan Feingold <efeingold@mn.rr.com> for
237 SetCreationTime, SetLastAccessTime and SetLastWriteTime.
239 2003-02-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
242 (ToArray): return only the portion of the buffer that contains
243 data, not the whole buffer. (note: this makes XmlDocument.Load work
244 again with documents that have a <?xml without the 'encoding'
245 attribute, which makes gtk-sharp generator work again).
247 2003-02-25 Nick Drochak <ndrochak@gol.com>
249 * File.cs (GetCreationTime): Throw proper execption when path is not
252 Tue Feb 25 11:55:35 CET 2003 Paolo Molaro <lupus@ximian.com>
254 * MemoryStream.cs: make it behave sanely when the stream is
255 incrementally expanded.
257 2003-02-21 Dick Porter <dick@ximian.com>
259 * FileStream.cs: Use locks around buffer manipulations. Fixes bug
262 2003-02-18 Dick Porter <dick@ximian.com>
264 * FileStream.cs: Make FileMode.Append work, and check for Seeking
265 back over old data (undocumented ms behaviour, throws an exception
266 if you try). Fixes bug 35975.
268 2003-02-17 Dick Porter <dick@ximian.com>
270 * FileStream.cs: Don't close the handle if the stream doesn't own
271 it. Patch from Raymond Penners (raymond@dotsphinx.com), bug
274 2003-02-14 Zoltan Varga <vargaz@freemail.hu>
276 * FileStream.cs (Write): flush after writing the last segment as well.
278 2003-02-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
281 (ReadLine): fixed the case when the string ends with a '\n'.
283 2003-02-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
285 * MemoryStream.cs: create the buffer of the specified capacity.
287 2003-01-31 Patrik Torstensson
289 * MemoryStream.cs: use BlockCopyInternal instead of Array.Copy, this is
290 the same way as MS does it (performance improvement)
292 2003-01-29 Zoltan Varga <vargaz@freemail.hu>
294 * Directory.cs (GetFileSystemEntries): moved error handling to the
295 correct instance of GetFileSystemEntries so all callers can enjoy it.
297 2003-01-28 Zoltan Varga <vargaz@freemail.hu>
299 * File.cs: add error handling to Get...Time methods.
301 2003-01-26 Zoltan Varga <vargaz@freemail.hu>
303 * Directory.cs: fix GetParent so it actually works.
305 2003-01-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
307 * Path.cs: fixlet to ChangeExtension for the case when the path is
310 2003-01-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
312 * BufferedStream.cs: don't try to write a 0 sized array on when
317 2003-01-18 Jonathan Pryor <jonpryor@vt.edu>
319 * FileStream.cs: Add IsAsync property. (Documented in "C# In A Nutshell".)
321 2003-01-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
323 * MemoryStream.cs: fixed bug #36319.
325 2002-12-16 Eduardo Garcia Cebollero <kiwnix@yahoo.es>
327 * Directory.cs: Some fixes to SMB shares handling, and not compiling
328 with csc, mcs compiles it correctly (mcs bug 35652)
330 2002-12-14 Eduardo Garcia Cebollero <kiwnix@yahoo.es>
332 * Directory.cs: Some fixes related to correct some exceptions thrown
334 2002-12-11 Eduardo Garcia Cebollero <kiwnix@yahoo.es>
336 * Directory.cs: Some Exceptions added, fixed GetParent(),
337 CreateDirectory() should work with unix, native windows and
338 windows samba shares. Converted end-lines from dos-mode to unix-mode
340 2002-12-08 Eduardo Garcia Cebollero <kiwnix@yahoo.es>
342 * Directory.cs: CreateDirectory works now with Absolute paths
343 too, not only with relative ones.
345 2002-12-07 Peter Williams <peterw@ximian.com>
347 * Directory.cs: Don't use the uninitialized pathsumm here.
348 Don't try and create "" if we're using an absolute path.
350 2002-12-07 Eduardo Garcia Cebollero <kiwnix@yahoo.es>
352 * Directory.cs: Now the creation of a new directory works recursively
353 it will make parents as needed.
355 2002-11-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
357 * BufferedStream.cs: applied patch from <carlosga@telefonica.net> that
360 Tue Nov 19 13:01:22 CET 2002 Paolo Molaro <lupus@ximian.com>
362 * StreamWriter.cs: output the encoding preamble at the start of a
365 2002-11-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
367 * StreamReader.cs: Changed all Encoding.UTF8 to Encoding.UTF8Unmarked.
369 2002-11-06 Miguel de Icaza <miguel@ximian.com>
371 * StreamWriter.cs: Changed all Encoding.UTF8 to Encoding.UTF8Unmarked.
373 2002-10-31 Dick Porter <dick@ximian.com>
375 * FileStream.cs: Fix buffering properly this time. Also kludge
376 around broken pipe errors, treating them as EOF instead of
377 throwing an IO exception.
379 * MonoIO.cs: Return the error status in a parameter, as the
380 GetLastError() value has long since been blown away if we try and
381 look it up in a subsequent internal call invocation.
386 * Directory.cs: MonoIO methods now have an error parameter
388 2002-10-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
390 * TextReader.cs: implemented ReadBlock ().
392 2002-10-30 Miguel de Icaza <miguel@ximian.com>
394 * StreamWriter.cs: Ditto for Null stream.
396 * BinaryReader.cs: Use Unmarked here too.
398 * BinaryWriter.cs: Use the UTF8Unmarker encoding by default, this
401 2002-10-23 Dick Porter <dick@ximian.com>
403 * FileStream.cs: Implemented CanSeek, and used it around all the
404 calls to MonoIO.Seek. Fixed buffering in Read() so that it
405 doesn't block forever on short reads.
407 * MonoFileType.cs: New enum for GetFileType
409 * MonoIO.cs: Added GetFileType
411 2002-10-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
413 * StreamReader.cs: ReadLine now treats a \r not followed by a \n as a
414 \n (this is what MS does).
416 2002-10-18 Dick Porter <dick@ximian.com>
418 * FileStream.cs: SeekOrigin.End still calculates the offset from
419 the end of the file with positive values extending the length.
422 2002-10-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
424 * Path.cs: some cleanup. Thanks to Martin Aliger.
426 2002-10-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
428 * FileStream.cs: throw an exception if trying to open a directory.
429 Thanks to Martin Aliger.
431 2002-10-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
433 * Path.cs: fixes bug #28046.
435 2002-09-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
437 * StreamReader.cs: give more information when wrong parameters passed.
439 2002-09-21 Miguel de Icaza <miguel@ximian.com>
441 * FileStream.cs: Do not call FSync on the file.
443 2002-09-16 Miguel de Icaza <miguel@ximian.com>
445 * TextWriter.cs (Null): The Null field should be an instance of a
446 TextWriter class that does nothing, so it is an instance of the
447 NullTextWriter class.
449 2002-09-16 Nick Drochak <ndrochak@gol.com>
451 * MemoryStream.cs (Close): Don't throw an exception if the stream
454 2002-09-15 Miguel de Icaza <miguel@ximian.com>
456 * FileStream.cs (Dispose): Call FlushBuffer(), and not Flush, as
459 The API docs show no explicit mention that Flush() should even do
460 an fsync, I am thinking that we should drop that from the
463 2002-09-09 Miguel de Icaza <miguel@ximian.com>
465 * StreamWriter.cs: When no encoding is provided, create an
466 encoding without markers, this is what MS does.
468 2002-09-06 Miguel de Icaza <miguel@ximian.com>
470 * StreamReader.cs: Implement detection of byte marks and skipping
471 of byte marks at the beginning of the stream.
473 (ReadToEnd): Use buffered read instead of char-by-char
476 Correct the default arguments for creating the StreamReader.
478 2002-08-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
480 * CheckArgument.cs: fixed check for empty string.
481 * Path.cs: various fixes. It passes all the tests in new PathTest.
483 2002-08-29 Duncan Mak <duncan@ximian.com>
485 * StreamWriter.cs: Set DisposedAlready after calling flush. Fixes
488 2002-08-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
497 * TextWriter.cs: IDisposable fixes.
499 2002-08-24 Miguel de Icaza <miguel@ximian.com>
501 * StreamReader.cs: Removed TODOs, as the code seems to be
504 * Path.cs (GetTempFileName): Make this routine atomic by not
505 testing and then creating, but using the create call to ensure
506 that we own the filename.
508 2002-08-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
510 * FileLoadException.cs: implemented ToString.
512 * StreamWriter.cs: added Null field and implemented Write (char) and
515 2002-08-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
517 * StreamReader.cs: implemented NullStreamReader.
519 2002-08-21 Miguel de Icaza <miguel@ximian.com>
521 * Path.cs (GetDirectoryName): Fix for filenames with size = 1
523 * File.cs: Removed all references that threw exceptions when the
524 paths contains a colon, as this is a valid part of an identifier
527 Everywhere: The String.Empty return from GetDirectoryName means
528 that there is no directory information about the path.
530 2002-08-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
532 * FileNotFoundException.cs: use Message and InnerException from base
533 class. Changed Message and ToString ().
535 2002-08-19 Dick Porter <dick@ximian.com>
537 * BinaryWriter.cs: The length of a string is counted in bytes, not
540 2002-08-18 Dick Porter <dick@ximian.com>
542 * BinaryReader.cs: Fixed buffering
544 2002-08-09 Nick Drochak <ndrochak@gol.com>
546 * BinaryReader.cs: added virtual to Dispose(bool).
548 2002-08-03 Jason Diamond <jason@injektilo.org>
550 * StringWriter.cs: Return UnicodeEncoding for Encoding property.
552 2002-08-03 Jason Diamond <jason@injektilo.org>
554 * StreamWriter.cs: Use GetByteCount() to get exact length instead
555 of GetMaxByteCount when converting chars to bytes.
557 2002-07-31 Duncan Mak <duncan@ximian.com>
560 (Dispose): Added and implmented.
563 (Dispose): Fixed visibility.
564 (Initialize): Fixed visibility, made internal.
567 (Dispose): Fixed visibility.
569 2002-07-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
572 (Create): allow file names without path.
574 Fri Jul 26 15:45:04 CEST 2002 Paolo Molaro <lupus@ximian.com>
576 * FileStream.cs: patch from erik@bagfors.nu to add
577 Name property support.
579 2002-07-20 Dick Porter <dick@ximian.com>
581 * MonoIO.cs: Added icall to CreatePipe
583 2002-07-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
585 * FileInfo.cs: fixes buglet #27940
587 2002-07-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
589 * Path.cs: removed unneeded line from GetExtension.
591 2002-07-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
594 (.ctor): call MonoIO.GetException with the file name.
596 2002-07-02 Mike Kestner <mkestner@speakeasy.net>
598 * StreamReader.cs: Guard against ^\n lines as pointed out by Gonzalo.
600 2002-07-02 Mike Kestner <mkestner@speakeasy.net>
602 * StreamReader.cs: Revert the last Peek change and fix the ReadLine
603 end of line detection code instead.
605 2002-07-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
608 (Peek): no need to have seek capabilitites.
610 2002-06-17 Dietmar Maurer <dietmar@ximian.com>
612 * Path.cs (ChangeExtension): handle some special cases (fixes bug #25319)
614 * File.cs (Delete): only call Directory.Exists() if DirName != ""
616 2002-06-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
618 * Directory.cs: fixed bug #26133 and also test if the directory exist
619 before performing the search.
621 2002-06-12 Nick Drochak <ndrochak@gol.com>
623 * StringReader.cs (ReadLine): Return null when we get to end of the
626 2002-05-22 Lawrence Pit <loz@cable.a2000.nl>
628 * StreamWriter.cs: added ability to write null value
630 2002-05-19 Lawrence Pit <loz@cable.a2000.nl>
632 * Stream.cs: NullStream.ReadByte now returns -1 instead of 0 to
633 prevent endless loops.
635 2002-05-17 Dan Lewis <dihlewis@yahoo.co.uk>
637 * FileStream.cs: Enforce lower bound on buffer size.
639 2002-05-16 Piers Haken <piersh@friskit.com>
641 * Stream.cs: Implement synchronous {Begin|End}{Read|Write}() methods.
643 2002-05-17 Nick Drochak <ndrochak@gol.com>
645 * StreamWriter.cs: Implement buffering. Also implemented dispose
646 pattern as recommended by the MS docs. Must call Close() now
647 to ensure the buffer is flushed.
649 2002-05-15 Nick Drochak <ndrochak@gol.com>
651 * Path.cs (GetDirectoryName): Return String.Empty if there is no
654 * StreamReader.cs: Add some parameter checking on file names.
656 * StreamWriter.cs: Add some parameter checking on file names.
658 2002-05-14 Nick Drochak <ndrochak@gol.com>
660 * File.cs: Add parameter checks to most methods. Not completely done,
661 but all current unit tests pass.
663 * Path.cs: Implement GetTempFileName().
665 2002-05-10 Nick Drochak <ndrochak@gol.com>
667 * StreamWriter.cs (Flush): Throw proper exception if internal stream
668 has already been closed when we try to flush.
670 2002/05/10 Nick Drochak <ndrochak@gol.com>
672 * FileNotFoundException.cs (ToString): Don't try to use the inner
673 exception, because it might be null. Use the message instead.
675 2002-05-09 Nick Drochak <ndrochak@gol.com>
677 * File.cs (Delete): Do not throw an exception if the file does not
680 2002-05-08 Mike Gray <mikeg@mikegray.org>
682 * File.cs: According to ECMA spec and MS docs Copy(src, dest)
683 should not overwrite dest by default.
685 2002-05-08 Nick Drochak <ndrochak@gol.com>
687 * StreamWriter.cs: Add paramter check to constructors and throw
688 exceptions where appropriate.
690 Tue May 7 11:47:46 CEST 2002 Paolo Molaro <lupus@ximian.com>
692 * StreamReader.cs: return the number of chars read even if we diddn't
693 fill the whole buffer (makes Sergey's ilasm work with mono).
695 2002-05-07 Mike Gray <mikeg_us@hotmail.com>
697 * FileInfo.cs (Create): Implement missing method.
699 2002-05-07 Mike Gray <mikeg_us@hotmail.com>
701 * File.cs: Implemented CreateText method, and fixed dst compares
702 to compare against "" instead of null twice.
704 2002-05-05 Nick Drochak <ndrochak@gol.com>
706 * StreamReader.cs: Throw exceptions where needed. Changed Null field to
707 use new internal class since null cannot be passed to constructor
708 anymore. Also, fix a coule of small bugs.
710 2002-05-03 Nick Drochak <ndrochak@gol.com>
712 * MemoryStream.cs: Refrain from allocating array until the space is
713 really needed. This fixes a bug in the Length property when the
714 constructor without the byte array is used.
716 2002-05-01 Duncan Mak <duncan@ximian.com>
718 * DirectoryNotFoundException.cs (constructor): Added missing
719 serialization constructor.
721 2002-04-30 Duncan Mak <duncan@ximian.com>
723 * FileLoadException.cs (constructors): Added missing (string,
724 string) ctor, as well as (string, string, Exception) ctor.
726 (Message): Added more info to the error message
728 (ToString): Added. We'll need to add the StackTrace stuff when
731 * FileShare.cs: Add a missing field, Inheritable.
733 * TextReader.cs: Renamed Synchronised method to Synchronized.
735 * TextWriter.cs: Renamed Synchronised method to Synchronized.
736 Renamed protected member coreNewLine to CoreNewLine.
738 2002-04-30 Sergey Chaban <serge@wildwestsoftware.com>
740 * BinaryReader.cs: Allocate buffer before its first use.
741 Handle end of stream properly. Methods to read native types
742 (ReadInt* etc.) are little-endian (see Compact Framework docs).
744 * BinaryWriter.cs: Store data in little-endian format.
745 Use internal buffer for conversions.
747 2002-03-31 Dick Porter <dick@ximian.com>
749 * Directory.cs: Strip out "." and ".." from returned list
751 * FileAttributes.cs: Get the right enum values
753 2002-03-28 Dietmar Maurer <dietmar@ximian.com>
755 * TextWriter.cs (write): added check for null
757 2002-03-28 Dan Lewis <dihlewis@yahoo.co.uk>
759 * Directory.cs: Throws DirectoryNotFoundException.
760 * MonoIO.cs: Fixed to work around enum problem.
762 2002-03-27 Dan Lewis <dihlewis@yahoo.co.uk>
764 * StreamReader.cs: Implemented ReadLine() and ReadEnd().
766 2002-03-27 Dan Lewis <dihlewis@yahoo.co.uk>
768 * Directory.cs, File.cs, FileSystemInfo.cs, FileInfo.cs,
769 DirectoryInfo.cs, Path.cs: Modified to use MonoIO class instead of
770 wrapper and PAL classes.
772 * MonoIO.cs, MonoIOStat.cs, MonoIOError.cs: Added.
774 2002-03-25 Mike Kestner <mkestner@speakeasy.net>
776 * MemoryStream.cs (Read): Fixed bug in exception throw.
778 2002-03-24 Mike Kestner <mkestner@speakeasy.net>
780 * StreamReader.cs (ReadBuffer): Fix buffer merging bugs.
782 2002-03-23 Martin Baulig <martin@gnome.org>
784 * StreamReader.cs: Always do buffered reading, use 4k blocks.
785 (Read (char[], int, int)): Implemented.
786 (DiscardBufferedData): Implemented.
788 2002-03-21 Mike Kestner <mkestner@speakeasy.net>
790 * StreamReader.cs : Fill out, add buffering, and use encoding.
792 2002-03-19 Martin Baulig <martin@gnome.org>
794 * StreamWriter.cs (StreamWriter (string)): The default is to override
795 the file, not to append to it.
796 (StreamWriter (string path, bool append)): When appending, seek to the
797 end of the file, otherwise truncate the file to zero length.
798 (Dispose (bool)): Close the internalStream.
799 (Flush): Flush the interalStream.
800 (Write (char[], int, int)): Flush the internalStream in auto-flush-mode.
802 2002-03-19 Dan Lewis <dihlewis@yahoo.co.uk>
804 * FileStream.cs: Flush buffer before FileSetLength.
806 2002-02-28 Miguel de Icaza <miguel@ximian.com>
808 * Stream.cs (NullStream): Do not track position, this beast does
811 2002-03-15 Dan Lewis <dihlewis@yahoo.co.uk>
813 * SearchPattern.cs: New class. Glob matching code for Directory.
814 * Directory.cs: Changed to use SearchPattern instead of mono_glob_*()
816 2002/03/15 Nick Drochak <ndrochak@gol.com>
818 * DirectoryInfo.cs: Fixed the overloaded GetDirectories and GetFiles.
819 This code seemed to be copied from somewhere, and it was close,
820 but didn't match the docs. This was the last bit needed to get
821 NAnt to compile with our class libs.
823 2002-03-12 Duncan Mak <duncan@ximian.com>
825 * EndOfStreamException.cs:
826 * FileLoadException.cs:
827 * FileNotFoundException.cs:
828 * PathTooLongException.cs: Changed the base classes to IOException
829 instead of SystemException.
831 * IOException.cs: Added missing constructors.
833 2002-03-07 Nick Drochak <ndrochak@gol.com>
835 * FileMode.cs: Docs don't say this should be explicitly derived from
836 int, so just make it a normal Enum.
838 2002-03-02 Jason Diamond <jason@injektilo.org>
840 * StringReader.cs: Fixed off-by-one error in Peek() and Read().
842 2002-02-12 Nick Drochak <ndrochak@gol.com>
844 * PathTooLongException.cs: put it in the correct namespace
845 * EndOfStreamException.cs: put it in the correct namespace
847 Thu Jan 31 17:32:32 CET 2002 Paolo Molaro <lupus@ximian.com>
849 * Directory.cs: handle opendir() return NULL and absolute filenames.
851 2002-01-31 Duncan Mak <duncan@ximian.com>
853 * FileLoadException.cs:
854 * FileNotFoundException: Added missing bits for serialization.
856 Thu Jan 24 17:42:54 CET 2002 Paolo Molaro <lupus@ximian.com>
858 * Directory.cs: allow directories in GetFiles() mask.
860 2002-01-23 Miguel de Icaza <miguel@ximian.com>
862 * FileInfo.c (CopyTo, MoveTo): Implement.
864 * FileStream.cs: Add argument checking to the constructor.
866 * File.cs: Rewrote most of the file. Implement Copy, Open, Create,
867 OpenText, OpenWrite, Move. Made pending methods flagged as MonoTODO.
869 * Directory.cs (Delete): reimplement without using DirectoryInfo.
870 (Delete): Implement the recursive version.
871 (GetCreationTime, GetLastWriteTime, GetLastAccessTime): Implement.
873 (getNames): dead code removal.
875 * Path.cs: define an internal DirectorySeparatorStr that we use in
878 * Wrapper.cs: Updated to new version.
880 * DirectoryInfo (Delete): Implement using the Directory API.
882 * DirectoryInfo.cs (GetFiles, GetDirectories, GetFileSystemInfos,
883 Delete, Create, Parent, Exists, MoveTo): Implement.
885 * Directory.cs (GetListing): implement new utility function.
886 (GetDirectories): Implement.
887 (GetFileSystemEntries): Implement.
888 (GetFiles): Implement.
890 * CheckArgument.cs (Path): Do not allow null by default.
892 Tue Jan 22 22:53:23 CET 2002 Paolo Molaro <lupus@ximian.com>
894 * DirectoryInfo.cs, FileInfo.cs: do not use Debug from the system
897 2002-01-20 Nick Drochak <ndrochak@gol.com>
899 * SeekOrigin.cs: Added Serializable attribute.
901 2002-01-19 Duncan Mak <duncan@ximian.com>
903 * PathTooLongException.cs:
904 * EndOfStreamException.cs: Added to CVS.
906 Thu Jan 10 12:06:46 MST 2002 Matt Kimball <matt@kimball.net>
908 * BufferedStream.cs: Initial implemenation. The synchronous
909 methods for both reading and writing are implemented. I'll do the
910 asynchronous methods in a bit.
912 Wed Jan 9 16:04:39 MST 2002 Matt Kimball <matt@kimball.net>
914 * BinaryWriter.cs: Initial implementation. And it's all there.
916 * BinaryReader.cs: The constructor now uses the passed in encoding,
919 Wed Jan 9 13:54:28 MST 2002 Matt Kimball <matt@kimbal.net>
921 * BinaryReader.cs: Initial implementation. I think it's complete.
923 2002-01-04 Ravi Pratap <ravi@ximian.com>
925 * CheckArgument.cs, CheckPermission.cs, Directory.cs: MonoTODO
926 attribute decorations.
928 * DirectoryInfo.cs, File.cs, FileInfo.cs, FileSystemInfo.cs,
929 Path.cs, TextReader.cs, TextWriter.cs : Ditto.
931 * FileLoadException.cs, FileNotFoundException.cs, StreamReader.cs:
934 2001-12-11 Dick Porter <dick@ximian.com>
936 * FileStream.cs: Use handles rather than casting file descriptors.
937 Added Handle property.
939 Wed Nov 14 16:47:47 CET 2001 Paolo Molaro <lupus@ximian.com>
941 * CheckPermission.cs: disable ModeAccess() code: it's wrong.
942 * FileStream.cs: only trow an exception if the read failed in ReadByte().
943 * StreamReader.cs: implement Peek and Read.
944 * TextWriter.cs: CLSCompliant updates.
946 2001-11-10 Sean MacIsaac <macisaac@ximian.com>
948 * FileNotFoundException.cs: Added some constructors
950 * Path.cs (GetFullPath): Fixed implementation
952 Fri Nov 2 18:27:58 CET 2001 Paolo Molaro <lupus@ximian.com>
954 * DirectoryNotFoundException.cs: implemented.
956 Tue Sep 25 18:54:06 CEST 2001 Paolo Molaro <lupus@ximian.com>
958 * File.cs: fix signatures of the Open() and OpenRead() functions
961 Thu Sep 13 18:04:23 CEST 2001 Paolo Molaro <lupus@ximian.com>
963 * FileLoadException.cs, FileNotFoundException.cs: added.
965 2001-08-28 Dietmar Maurer <dietmar@ximian.com>
967 * TextReader.cs: implemented the Read method
969 * StreamReader.cs: impl. stubs
971 * StreamWriter.cs: impl.
973 * TextWriter.cs: implemented Write and WriteLine methods
975 Sun Aug 26 23:01:41 CEST 2001 Paolo Molaro <lupus@ximian.com>
977 * FileAccess.cs, FileMode.cs: change values to be compatible with
980 Sun Aug 26 11:47:56 CEST 2001 Paolo Molaro <lupus@ximian.com>
982 * IOException.cs: Implemented System.IO.Exception.
984 2001-07-18 Michael Lambert <michaellambert@email.com>
986 *SeekOrigin.cs.cs, FileShare.cs, FileMode.cs, FileAccess.cs: Add.
988 2001-07-19 Marcin Szczepanski <marcins@zipworld.com.au>
990 * System.IO.MemoryStream.cs: Added. Had quite a few cases of
991 "LAMESPEC", but the tests work against the MS implementation so
992 the major functions are right (ie. Read/Write/Seek). Some more
993 tests required for the various constructors and exceptions.
995 2001-07-16 Marcin Szczepanski <marcins@zipworld.com.au>
997 * StringReader.cs, StringWriter.cs, TextReader.cs, TextWriter.cs:
998 New class implemenations.
1000 * StringReaderTest.cs, StringWriterTest.cs: Test suite for the above.