I am using Jackson CSVMapper to read a tab separated text file into a list of java objects, and write it back into another tab separated text file. My class looks like this: Parser code: Writer code: I want to extract just the header irrespective of the data. So, should return How can I do it? Thanks! Answer The following