| org.csvbeans.parsers.ParsingStrategy
All known Subclasses: org.csvbeans.parsers.AbstractParser,
ParsingStrategy | public interface ParsingStrategy (Code) | | Define the specifications of a CSV parser.
Implement this interface if you want to create your own parser.
author: Fouad Hamdi since: 0.5 |
addProperty | void addProperty(String name, String value)(Code) | | Add a property to the parsing strategy. It is used to set some properties
to specific parsers.
Parameters: name - Parameters: value - |
getBeans | List getBeans(String tag)(Code) | | Return the beans associated with a tag. Each bean represents a CSV
record. If no beans are associated, a null value is returned.
Parameters: tag - the tag representing the records. the list of beans associated with a tag. |
getPropertyValue | String getPropertyValue(String name)(Code) | | Return the value of the specified property.
Parameters: name - the property name the property value |
setListener | void setListener(CSVParserListener listener)(Code) | | Set the parser listener. The listener will be notified of the beginning
and the end of the parsing. When a record is parsed, it will also be
notified of the matching bean object.
Parameters: listener - The listener to set |
setProperties | void setProperties(Map properties)(Code) | | Define the properties of the parser.
Parameters: properties - the parser properties. |
setSpecifications | void setSpecifications(SpecificationsFile specifications)(Code) | | Define the CSV specifications.
Parameters: specifications - The CSV specifications. |
|
|