Created
November 13, 2012 14:54
-
-
Save ybonnel/4066133 to your computer and use it in GitHub Desktop.
Get Column names in CsvEngine
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Field mapClassesField = CsvEngine.class.getDeclaredField("mapClasses"); | |
mapClassesField.setAccessible(true); | |
CsvClass csvClass = ((Map<Class<?>, CsvClass>)mapClassesField.get(engine)).get(Dog.class); | |
System.out.println(csvClass.getColumnNames()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment