Alessandro Melandri

WebSphere Commerce Specialist, project manager, wannabe photographer

JTextFileParser

JTextFileParser is a java package built for simplifing delimited text files parsing. It gives you a quick way for parsing a delimited text file, managing rows and row’s fields.

To use this package you need JDK 1.3 or greater.

This project is released under a GNU General Public License v3

Downloads

This project is hosted on Google Code.

Please visit the project page to download binary releases and source code and examples

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Version history

1.4 - 03.23.2010

  • Added a new output file filter to export text data as XML

1.3.1 - 06.17.2008

  • Added a new way to specify output parameters whe creating files from a TextFile object: now you can use TextFileFilter? and HTMLFileFilter. Check out the code and the documentation for more info.

1.3 - 06.12.2008

  • Added the option to build a TextFile? object from an ArrayList? of Row objects
  • Rewritten the code for accessing files: added the FileManager? class
  • Improved the HTML export function: now you’ll get nicely formatted tables and valid XHTML markup. You can also specify your custom stylesheet.
  • Code optimization and cleanup

1.2 - 03.12.2008

  • Added the option to ignore the first line of the file. Now you can create a TextFile? object specifing the hasHeader parameter (true|false). If you set hasHeader to true you’ll be able to access the header row using the method getHeaderRow() and the first row returned by the method getRows() will be the second row of the file.
  • Added the method replaceRows(ArrayList? rows) in the TextFile? class. This method will replace all rows in the TextFile?? object
  • Deprecated the method getSimpleRow in the Row class. From now on you should use the method getStringRow

1.1 - 01.26.2008

  • Added a method to export the text file to an HTML page
  • Added a method to export selected rows to an HTML page
  • Added a method to export selected rows and selected fields to an HTML page
  • Some code cleanup

1.0 - 01.26.2008

  • First public release