Copyright (C) 2003,2004 dr. Cristiano Sadun

org.sadun.text.ffp
Interface FlatFileParser.Listener

All Known Subinterfaces:
FlatFileParser.AdvancedListener, FlatFileParser.UnmatchedLineListener
All Known Implementing Classes:
BaseListener, DBInsertionListener, DispatcherListener
Enclosing interface:
FlatFileParser

public static interface FlatFileParser.Listener

Classes implementing this interface can be registered in a FlatFileParser (using FlatFileParser#addListener(Listener)) to react to successfully parsed lines in the flat file.

The LineFormat is passed as well, for easier handling of mixed lines files.

Author:
Cristiano Sadun

Method Summary
 void lineParsed(LineFormat format, int logicalLinecount, int physicalLineCount, java.lang.String[] values)
          Invoked when a line is successfully parsed.
 

Method Detail

lineParsed

public void lineParsed(LineFormat format,
                       int logicalLinecount,
                       int physicalLineCount,
                       java.lang.String[] values)
                throws AbortFFPException
Invoked when a line is successfully parsed. The corresponding LineFormat is passed as well.

Parameters:
format - the LineFormat object which has executed the parsing
values - the values resulting from the parsing
Throws:
AbortFFPException

Copyright (C) 2003,2004 dr. Cristiano Sadun