buffer.append("Global Info: " + saver.globalInfo() + "\n");
String className = saver.getSaver().getClass().getName();
if(className.equalsIgnoreCase(DatabaseSaver.class.getName())) {
DatabaseSaver databaseSaver = (DatabaseSaver)saver.getSaver();
buffer.append("Saver type: DatabaseSaver" + "\n");
buffer.append("Options: ");
String[] options = databaseSaver.getOptions();
for(int i = 0; i < options.length; i++) {
buffer.append(options[i] + "; ");
}
buffer.append("\n");
buffer.append("URL: " + databaseSaver.getUrl() + "\n");
buffer.append("User: " + databaseSaver.getUser() + "\n");
buffer.append("Password: " + "?" + "\n");
buffer.append("Table Name: " + databaseSaver.getTableName() + "\n");
buffer.append("Relation For Table Name: " + databaseSaver.getRelationForTableName() + "\n");
buffer.append("Auto Key Generation: " + databaseSaver.getAutoKeyGeneration() + "\n");
}
else if(className.equalsIgnoreCase(ArffSaver.class.getName())) {
ArffSaver arffSaver = (ArffSaver)saver.getSaver();
buffer.append(" Loader type: ArffSaver" + "\n");
}