PackageDescription: GHCsvImportExport


GH Csv Import Export

Last published: December 1, 2008 by 'support'

Defines 6 Classes
Extends 7 Classes


Support of reading and writing the CSV (Comma Separated Value) text file format.
Simple viewing utility included.

March 1, 2001
Holger Guhl (mailto:Holger.Guhl@heeg.de)
(C) Copyright 2001 Georg Heeg - www.heeg.de

Version history:
===========================================================
1.11 - 30-NOV-2008
Fix PeekableStream>>nextBOM (must restore text mode if it was text)
===========================================================
1.10 - 15-DEC-2006
- Verify for VisualWorks 7.5
===========================================================
1.9 - 11-DEC-2006
- Verify for VisualWorks 7.5
- Add class comment for CsvWriter and CsvFileViewer
- Refine method comment of PeekableStream>>nextBOM
===========================================================
1.8 - 26-JUN-2006
Fix handling of embedded (quoted) CR
- CsvReader nextLine (handle quoted CR which is NOT end-of-line)
- CsvWriter nextPut: (quote embedded CR)
Fix unintended modification of NumberPrintPolicy defaultInstance
- CsvWriter separators:types: (use a copy)
Review handling of BOM (Byte Order Mark)
- add reusable BOM scanning methods to PeekableStream
- CsvFileViewer openFile (reuse CsvReader>>onFileNamed: with BOM handling)
- CsvFileReader readEntries
- reuse CsvReader>>onFileNamed: with BOM handling
- discard #detectLineEndConvention (added to CsvReader>>on:)
- ensure file closure
REMOVED (no more senders, use #lineEndAuto)
- BufferedExternalStream detectLineEndConvention (add)
REVIEW
- replace "== 0" with "isZero" in CsvFileViewer methods
- replace old message send of #valueNowOrOnUnwindDo: with #ensure:
- replace "== nil" with "isNil" in CsvFileViewer and CsvReader methods
===========================================================
1.7 - 26-JUN-2006
Reorganization: Move from all classes from namespace Heeg.Utilities to Heeg
Fix message expansion in
- CsvWriter>>nextPutHeadings:, #nextPutRows:, #nextPutColumns:
- CsvFileViewer>>openFile
Replace old #withArgs: with VisualWorks #expandMacrosWith:[with:]
===========================================================
1.6 - 10-NOV-2005
Recognize utf-16 encoded text files
===========================================================
1.5 - 07-NOV-2005
Recognize utf-8 encoded text files
===========================================================
1.4 - 22-JUN-2004
Renamed CsvImport as CsvFileReader
===========================================================
1.3 - 27-FEB-2004
Added classes for mapped import (CsvImport + CsvLine)
===========================================================
1.2 - 17-JUN-2003
Fix prerequisites (add HeegUtilities-Namespace)
===========================================================
1.1 - 17-JUN-2003
added OS.BufferedExternalStream>>detectLineEndConvention
===========================================================
1.0 - 17-JUN-2003 (first version published on james@heeg.de