ingo@230: package de.intevation.gnv.exports; ingo@230: ingo@233: ingo@230: /** ingo@230: * @author Sascha L. Teichmann (sascha.teichmann@intevation.de) ingo@230: * @author Ingo Weinzierl (ingo.weinzierl@intevation.de) ingo@230: */ ingo@230: public class DefaultProfile ingo@230: implements Export.Profile ingo@230: { ingo@233: protected Export.DataCollector collector; ingo@239: protected String [] header; ingo@233: protected String [] names; ingo@233: protected char separator; ingo@233: protected char escapeCharacter; ingo@233: protected char quoteCharacter; ingo@233: protected String type; ingo@233: protected String encoding; ingo@230: ingo@230: public DefaultProfile() { ingo@230: } ingo@230: ingo@230: public DefaultProfile( ingo@239: String [] header, ingo@233: char separator, ingo@233: char escapeCharacter, ingo@233: char quoteCharacter, ingo@233: String type, ingo@233: String encoding ingo@230: ) { ingo@239: this.header = header; ingo@230: this.separator = separator; ingo@230: this.escapeCharacter = escapeCharacter; ingo@230: this.quoteCharacter = quoteCharacter; ingo@230: this.type = type; ingo@230: this.encoding = encoding; ingo@230: } ingo@230: ingo@230: public String toString(int index, String value) { ingo@230: return value; ingo@230: } ingo@230: ingo@230: public char getSeparator() { ingo@230: return separator; ingo@230: } ingo@230: ingo@230: public char getEscapeCharacter() { ingo@230: return escapeCharacter; ingo@230: } ingo@230: ingo@230: public char getQuoteCharacter() { ingo@230: return quoteCharacter; ingo@230: } ingo@230: ingo@230: public String getType() { ingo@230: return type; ingo@230: } ingo@230: ingo@230: public String getEncoding() { ingo@230: return encoding; ingo@230: } ingo@239: ingo@239: public String[] getHeader() { ingo@239: return header; ingo@239: } ingo@230: }