Java library to read SPSS files.
<dependency>
<groupId>com.bedatadriven.spss</groupId>
<artifactId>spss-reader</artifactId>
<version>1.3</version>
</dependency>
SpssDataFileReader reader = new SpssDataFileReader("mydata.sav");
// Print variables present in the file
for(SpssVariable variable : reader.getVariables()) {
System.out.println(variable.getLabel());
}
// Read the cases
while(reader.readNextCase()) {
double var0 = reader.getDoubleValue(0);
String var1 = reader.getStringValue(1);
}
- Support for very long strings @ElmervcElmervc.
- Support for extended number of cases record @ElmervcElmervc.
- Support for write and print formats @gdecaso.