Fuse 6 is no longer supported
As of February 2025, Red Hat Fuse 6 is no longer supported. If you are using Fuse 6, please upgrade to Red Hat build of Apache Camel.此内容没有您所选择的语言版本。
2.7. Configuring the CSV Reader for Record Sets
- To configure a Smooks instance with a CSV reader to read a person record set, use the code below. It will bind the records to a list of person instances.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow NoteYou can also optionally configure the Java Bean. The Smooks instance could instead (or additionally) be configured programmatically to use other visitor implementations to process the CSV record set. - To bind the CSV's records to a list or map of a Java type that reflects the data in your CSV records, use the
CSVListBinderorCSVMapBinderclasses:Copy to Clipboard Copied! Toggle word wrap Toggle overflow If you need more control over the binding process, revert back to using the lower-level APIs.