Le 15/03/2012 08:55, Benedikt Ritter a écrit :
I'm not sure if I understand the approach completely. The Header can not be accessed as a CSVRecord, right? CSVRecords know the header values through get(string). What happens if the format does not support a header? UnsupportedOperationException?
Yes, or IllegalStateException.
If I got you right, we could use getHeaders() to know, which header values are available.
The actual header would be returned by parser.getHeader().
Maybe it would be useful to have the record implement iterable as well.
Or have a method return the array of values if you want to iterate over it. Emmanuel Bourg
smime.p7s
Description: S/MIME Cryptographic Signature