<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to patches</title><link href="https://sourceforge.net/p/flatpack/patches/" rel="alternate"/><link href="https://sourceforge.net/p/flatpack/patches/feed.atom" rel="self"/><id>https://sourceforge.net/p/flatpack/patches/</id><updated>2008-02-11T13:22:06Z</updated><subtitle>Recent changes to patches</subtitle><entry><title>CSV : No column title when writing</title><link href="https://sourceforge.net/p/flatpack/patches/5/" rel="alternate"/><published>2008-02-11T13:22:06Z</published><updated>2008-02-11T13:22:06Z</updated><author><name>Sylvain Mougenot</name><uri>https://sourceforge.net/u/neokiki/</uri></author><id>https://sourceforge.net33665b8fcd34a290259a3ea8d081124c2e62df91</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Add configuration method on DelimiterWriter to provide the hability to choose wether you want column title or not when writing files.&lt;/p&gt;
&lt;p&gt;Changes on DelimiterWriter &lt;br /&gt;
- void setWriteColumnTitle(boolean) tell wether or not to write column title before first record.&lt;br /&gt;
- overwrite addRecordEntry(String columnName, Object value) to set Map capacity according to "columnTitles" size.&lt;/p&gt;
&lt;p&gt;Also change some of AbstractWriter:&lt;br /&gt;
- boolean AbstractWriter.isFirstRecordWritten() that return true only after the first call to AbstractWriter.nextRecord(). Used to set column title if desired before the first record line.&lt;br /&gt;
- void AbstractWriter.setRowMap(Map). Used by DelimiterWriter to ajuste Map capacity when calling addRecordEntry(String , Object ).&lt;/p&gt;
&lt;p&gt;Base on FlatPack v3.1.1&lt;/p&gt;
&lt;p&gt;Contains unit test &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Ensure unique column names</title><link href="https://sourceforge.net/p/flatpack/patches/4/" rel="alternate"/><published>2008-02-04T09:28:02Z</published><updated>2008-02-04T09:28:02Z</updated><author><name>Dirk Olmes</name><uri>https://sourceforge.net/u/userid-123776/</uri></author><id>https://sourceforge.net6ccacb5a43e0dc871c40d31e5e4a8c6da7ad11d3</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I was working with flatpack using a legacy data layout with fixed column widths. To stay as close to the spec as possible, I retained the column names from the original data format specification. Unfortunately, those names were not unique (e.g. I had two columns "A1" with different lengths). Flatpack accepted my mapping file just fine and I discovered the duplicate column names only later in a debugging session.&lt;/p&gt;
&lt;p&gt;Here's a patch to MapParser that temporarily keeps a Set of names while parsing the XML mapping and throws an IllegalArgumentException if duplicate names are detected.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Support for C style new line escaping and NULL (\N)</title><link href="https://sourceforge.net/p/flatpack/patches/3/" rel="alternate"/><published>2006-01-27T07:36:01Z</published><updated>2006-01-27T07:36:01Z</updated><author><name>Sorin Sbarnea</name><uri>https://sourceforge.net/u/intersol/</uri></author><id>https://sourceforge.net6c0950225d8e05f1b6455d2d9f344f196a7bd678</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;This small patch will recognize exports that contains&lt;br /&gt;
at the C like newline escaping (when a newline is in a&lt;br /&gt;
string the exporter it will put a \ before it).&lt;br /&gt;
Importer must check if current line is ending with a \
and if so it must append the next line to it stripping&lt;br /&gt;
the \.&lt;/p&gt;
&lt;p&gt;\N - if this sequence is found in a column (cell) it&lt;br /&gt;
will mark the cell as NULL. &lt;/p&gt;
&lt;p&gt;Those two forms are used by mysql export functions&lt;br /&gt;
(SELECT... INTO ...) and cannot be overwriten.&lt;/p&gt;
&lt;p&gt;Sorry for not putting a diff.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Handling fixed length files lines that are too short</title><link href="https://sourceforge.net/p/flatpack/patches/2/" rel="alternate"/><published>2005-12-01T19:44:59Z</published><updated>2005-12-01T19:44:59Z</updated><author><name>Luke Driscoll</name><uri>https://sourceforge.net/u/ld6772/</uri></author><id>https://sourceforge.net4ee66dd6f07721b80bde21b943c99940a85f723c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Paul,&lt;br /&gt;
I apologize for not doing as much testing on the&lt;br /&gt;
delimited issue as I would have liked. &lt;/p&gt;
&lt;p&gt;I have a patch to submit to you; this enables a user to&lt;br /&gt;
parse files against a fixed width configuration, even&lt;br /&gt;
when the lines are shorter than they should be.&lt;/p&gt;
&lt;p&gt;The reasoning behind this is I have a configuration&lt;br /&gt;
like this:&lt;/p&gt;
&lt;p&gt;&amp;lt;COLUMN name="Entry1"      length="5"/&amp;gt;&lt;br /&gt;
&amp;lt;COLUMN name="Entry2"      length="5"/&amp;gt;&lt;/p&gt;
&lt;p&gt;with lines like:&lt;br /&gt;
12345 2345&lt;br /&gt;
12345&lt;br /&gt;
(note no entry2 and no blank spaces for it)&lt;/p&gt;
&lt;p&gt;Currently pzFileReader will reject the second line&lt;br /&gt;
because it is not long enough.  In the patch I have&lt;br /&gt;
added a flag to allow the user to have shorter lines,&lt;br /&gt;
and it appends blank spaces to the end of the line so&lt;br /&gt;
it will parse. &lt;/p&gt;
&lt;p&gt;I appologize that the coding isn't particularly elegant.&lt;/p&gt;
&lt;p&gt;Currently I have only made the change for fixed width&lt;br /&gt;
files, but it would be useful to add it to the&lt;br /&gt;
delimited files also.&lt;/p&gt;
&lt;p&gt;Luke&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Add ability to cope with Blanks more correctly</title><link href="https://sourceforge.net/p/flatpack/patches/1/" rel="alternate"/><published>2005-08-29T20:02:16Z</published><updated>2005-08-29T20:02:16Z</updated><author><name>Luke Driscoll</name><uri>https://sourceforge.net/u/ld6772/</uri></author><id>https://sourceforge.netc31782eb5fbdc062ab887ad11be45c9df0568778</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have updated the DataSet.java to cope with the following:&lt;/p&gt;
&lt;p&gt;Lines ending in a delimiter should add that column&lt;br /&gt;
so:&lt;br /&gt;
Col1,Col2,&lt;br /&gt;
should be interpretted with a blank Col3&lt;br /&gt;
this also goes for&lt;br /&gt;
Col1,Col2,""&lt;/p&gt;
&lt;p&gt;Coping with blank spaces&lt;br /&gt;
Col1,,Col3&lt;br /&gt;
Should be interpretted as Blank Col2&lt;/p&gt;
&lt;p&gt;Also&lt;br /&gt;
Col1,,&lt;br /&gt;
Should be interpretted as Blank Col2 and Col3&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>