2002-07-02 Mike Kestner * StreamReader.cs: Revert the last Peek change and fix the ReadLine end of line detection code instead. 2002-07-02 Gonzalo Paniagua Javier * StreamReader.cs: (Peek): no need to have seek capabilitites. 2002-06-17 Dietmar Maurer * Path.cs (ChangeExtension): handle some special cases (fixes bug #25319) * File.cs (Delete): only call Directory.Exists() if DirName != "" 2002-06-12 Gonzalo Paniagua Javier * Directory.cs: fixed bug #26133 and also test if the directory exist before performing the search. 2002-06-12 Nick Drochak * StringReader.cs (ReadLine): Return null when we get to end of the string. 2002-05-22 Lawrence Pit * StreamWriter.cs: added ability to write null value 2002-05-19 Lawrence Pit * Stream.cs: NullStream.ReadByte now returns -1 instead of 0 to prevent endless loops. 2002-05-17 Dan Lewis * FileStream.cs: Enforce lower bound on buffer size. 2002-05-16 Piers Haken * Stream.cs: Implement synchronous {Begin|End}{Read|Write}() methods. 2002-05-17 Nick Drochak * StreamWriter.cs: Implement buffering. Also implemented dispose pattern as recommended by the MS docs. Must call Close() now to ensure the buffer is flushed. 2002-05-15 Nick Drochak * Path.cs (GetDirectoryName): Return String.Empty if there is no directory * StreamReader.cs: Add some parameter checking on file names. * StreamWriter.cs: Add some parameter checking on file names. 2002-05-14 Nick Drochak * File.cs: Add parameter checks to most methods. Not completely done, but all current unit tests pass. * Path.cs: Implement GetTempFileName(). 2002-05-10 Nick Drochak * StreamWriter.cs (Flush): Throw proper exception if internal stream has already been closed when we try to flush. 2002/05/10 Nick Drochak * FileNotFoundException.cs (ToString): Don't try to use the inner exception, because it might be null. Use the message instead. 2002-05-09 Nick Drochak * File.cs (Delete): Do not throw an exception if the file does not exist. 2002-05-08 Mike Gray * File.cs: According to ECMA spec and MS docs Copy(src, dest) should not overwrite dest by default. 2002-05-08 Nick Drochak * StreamWriter.cs: Add paramter check to constructors and throw exceptions where appropriate. Tue May 7 11:47:46 CEST 2002 Paolo Molaro * StreamReader.cs: return the number of chars read even if we diddn't fill the whole buffer (makes Sergey's ilasm work with mono). 2002-05-07 Mike Gray * FileInfo.cs (Create): Implement missing method. 2002-05-07 Mike Gray * File.cs: Implemented CreateText method, and fixed dst compares to compare against "" instead of null twice. 2002-05-05 Nick Drochak * StreamReader.cs: Throw exceptions where needed. Changed Null field to use new internal class since null cannot be passed to constructor anymore. Also, fix a coule of small bugs. 2002-05-03 Nick Drochak * MemoryStream.cs: Refrain from allocating array until the space is really needed. This fixes a bug in the Length property when the constructor without the byte array is used. 2002-05-01 Duncan Mak * DirectoryNotFoundException.cs (constructor): Added missing serialization constructor. 2002-04-30 Duncan Mak * FileLoadException.cs (constructors): Added missing (string, string) ctor, as well as (string, string, Exception) ctor. (Message): Added more info to the error message (ToString): Added. We'll need to add the StackTrace stuff when that works. * FileShare.cs: Add a missing field, Inheritable. * TextReader.cs: Renamed Synchronised method to Synchronized. * TextWriter.cs: Renamed Synchronised method to Synchronized. Renamed protected member coreNewLine to CoreNewLine. 2002-04-30 Sergey Chaban * BinaryReader.cs: Allocate buffer before its first use. Handle end of stream properly. Methods to read native types (ReadInt* etc.) are little-endian (see Compact Framework docs). * BinaryWriter.cs: Store data in little-endian format. Use internal buffer for conversions. 2002-03-31 Dick Porter * Directory.cs: Strip out "." and ".." from returned list * FileAttributes.cs: Get the right enum values 2002-03-28 Dietmar Maurer * TextWriter.cs (write): added check for null 2002-03-28 Dan Lewis * Directory.cs: Throws DirectoryNotFoundException. * MonoIO.cs: Fixed to work around enum problem. 2002-03-27 Dan Lewis * StreamReader.cs: Implemented ReadLine() and ReadEnd(). 2002-03-27 Dan Lewis * Directory.cs, File.cs, FileSystemInfo.cs, FileInfo.cs, DirectoryInfo.cs, Path.cs: Modified to use MonoIO class instead of wrapper and PAL classes. * MonoIO.cs, MonoIOStat.cs, MonoIOError.cs: Added. 2002-03-25 Mike Kestner * MemoryStream.cs (Read): Fixed bug in exception throw. 2002-03-24 Mike Kestner * StreamReader.cs (ReadBuffer): Fix buffer merging bugs. 2002-03-23 Martin Baulig * StreamReader.cs: Always do buffered reading, use 4k blocks. (Read (char[], int, int)): Implemented. (DiscardBufferedData): Implemented. 2002-03-21 Mike Kestner * StreamReader.cs : Fill out, add buffering, and use encoding. 2002-03-19 Martin Baulig * StreamWriter.cs (StreamWriter (string)): The default is to override the file, not to append to it. (StreamWriter (string path, bool append)): When appending, seek to the end of the file, otherwise truncate the file to zero length. (Dispose (bool)): Close the internalStream. (Flush): Flush the interalStream. (Write (char[], int, int)): Flush the internalStream in auto-flush-mode. 2002-03-19 Dan Lewis * FileStream.cs: Flush buffer before FileSetLength. 2002-02-28 Miguel de Icaza * Stream.cs (NullStream): Do not track position, this beast does nothing in practice. 2002-03-15 Dan Lewis * SearchPattern.cs: New class. Glob matching code for Directory. * Directory.cs: Changed to use SearchPattern instead of mono_glob_*() 2002/03/15 Nick Drochak * DirectoryInfo.cs: Fixed the overloaded GetDirectories and GetFiles. This code seemed to be copied from somewhere, and it was close, but didn't match the docs. This was the last bit needed to get NAnt to compile with our class libs. 2002-03-12 Duncan Mak * EndOfStreamException.cs: * FileLoadException.cs: * FileNotFoundException.cs: * PathTooLongException.cs: Changed the base classes to IOException instead of SystemException. * IOException.cs: Added missing constructors. 2002-03-07 Nick Drochak * FileMode.cs: Docs don't say this should be explicitly derived from int, so just make it a normal Enum. 2002-03-02 Jason Diamond * StringReader.cs: Fixed off-by-one error in Peek() and Read(). 2002-02-12 Nick Drochak * PathTooLongException.cs: put it in the correct namespace * EndOfStreamException.cs: put it in the correct namespace Thu Jan 31 17:32:32 CET 2002 Paolo Molaro * Directory.cs: handle opendir() return NULL and absolute filenames. 2002-01-31 Duncan Mak * FileLoadException.cs: * FileNotFoundException: Added missing bits for serialization. Thu Jan 24 17:42:54 CET 2002 Paolo Molaro * Directory.cs: allow directories in GetFiles() mask. 2002-01-23 Miguel de Icaza * FileInfo.c (CopyTo, MoveTo): Implement. * FileStream.cs: Add argument checking to the constructor. * File.cs: Rewrote most of the file. Implement Copy, Open, Create, OpenText, OpenWrite, Move. Made pending methods flagged as MonoTODO. * Directory.cs (Delete): reimplement without using DirectoryInfo. (Delete): Implement the recursive version. (GetCreationTime, GetLastWriteTime, GetLastAccessTime): Implement. (Move): Reimplement. (getNames): dead code removal. * Path.cs: define an internal DirectorySeparatorStr that we use in a few spots. * Wrapper.cs: Updated to new version. * DirectoryInfo (Delete): Implement using the Directory API. * DirectoryInfo.cs (GetFiles, GetDirectories, GetFileSystemInfos, Delete, Create, Parent, Exists, MoveTo): Implement. * Directory.cs (GetListing): implement new utility function. (GetDirectories): Implement. (GetFileSystemEntries): Implement. (GetFiles): Implement. * CheckArgument.cs (Path): Do not allow null by default. Tue Jan 22 22:53:23 CET 2002 Paolo Molaro * DirectoryInfo.cs, FileInfo.cs: do not use Debug from the system assembly in corlib. 2002-01-20 Nick Drochak * SeekOrigin.cs: Added Serializable attribute. 2002-01-19 Duncan Mak * PathTooLongException.cs: * EndOfStreamException.cs: Added to CVS. Thu Jan 10 12:06:46 MST 2002 Matt Kimball * BufferedStream.cs: Initial implemenation. The synchronous methods for both reading and writing are implemented. I'll do the asynchronous methods in a bit. Wed Jan 9 16:04:39 MST 2002 Matt Kimball * BinaryWriter.cs: Initial implementation. And it's all there. * BinaryReader.cs: The constructor now uses the passed in encoding, not UTF8 always. Wed Jan 9 13:54:28 MST 2002 Matt Kimball * BinaryReader.cs: Initial implementation. I think it's complete. 2002-01-04 Ravi Pratap * CheckArgument.cs, CheckPermission.cs, Directory.cs: MonoTODO attribute decorations. * DirectoryInfo.cs, File.cs, FileInfo.cs, FileSystemInfo.cs, Path.cs, TextReader.cs, TextWriter.cs : Ditto. * FileLoadException.cs, FileNotFoundException.cs, StreamReader.cs: Ditto. 2001-12-11 Dick Porter * FileStream.cs: Use handles rather than casting file descriptors. Added Handle property. Wed Nov 14 16:47:47 CET 2001 Paolo Molaro * CheckPermission.cs: disable ModeAccess() code: it's wrong. * FileStream.cs: only trow an exception if the read failed in ReadByte(). * StreamReader.cs: implement Peek and Read. * TextWriter.cs: CLSCompliant updates. 2001-11-10 Sean MacIsaac * FileNotFoundException.cs: Added some constructors * Path.cs (GetFullPath): Fixed implementation Fri Nov 2 18:27:58 CET 2001 Paolo Molaro * DirectoryNotFoundException.cs: implemented. Tue Sep 25 18:54:06 CEST 2001 Paolo Molaro * File.cs: fix signatures of the Open() and OpenRead() functions (they are static). Thu Sep 13 18:04:23 CEST 2001 Paolo Molaro * FileLoadException.cs, FileNotFoundException.cs: added. 2001-08-28 Dietmar Maurer * TextReader.cs: implemented the Read method * StreamReader.cs: impl. stubs * StreamWriter.cs: impl. * TextWriter.cs: implemented Write and WriteLine methods Sun Aug 26 23:01:41 CEST 2001 Paolo Molaro * FileAccess.cs, FileMode.cs: change values to be compatible with the ms ones. Sun Aug 26 11:47:56 CEST 2001 Paolo Molaro * IOException.cs: Implemented System.IO.Exception. 2001-07-18 Michael Lambert *SeekOrigin.cs.cs, FileShare.cs, FileMode.cs, FileAccess.cs: Add. 2001-07-19 Marcin Szczepanski * System.IO.MemoryStream.cs: Added. Had quite a few cases of "LAMESPEC", but the tests work against the MS implementation so the major functions are right (ie. Read/Write/Seek). Some more tests required for the various constructors and exceptions. 2001-07-16 Marcin Szczepanski * StringReader.cs, StringWriter.cs, TextReader.cs, TextWriter.cs: New class implemenations. * StringReaderTest.cs, StringWriterTest.cs: Test suite for the above.