Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/exports/DefaultProfile.java @ 540:80630520e25a
merged gnv-artifacts/0.4
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:13:49 +0200 |
parents | 3ea030aafe65 |
children | a0e63136954e |
comparison
equal
deleted
inserted
replaced
415:9f4a0b990d27 | 540:80630520e25a |
---|---|
1 package de.intevation.gnv.exports; | |
2 | |
3 | |
4 /** | |
5 * @author Sascha L. Teichmann (sascha.teichmann@intevation.de) | |
6 * @author Ingo Weinzierl (ingo.weinzierl@intevation.de) | |
7 */ | |
8 public class DefaultProfile | |
9 implements Export.Profile | |
10 { | |
11 protected Export.DataCollector collector; | |
12 protected String [] header; | |
13 protected String [] names; | |
14 protected char separator; | |
15 protected char escapeCharacter; | |
16 protected char quoteCharacter; | |
17 protected String type; | |
18 protected String encoding; | |
19 | |
20 public DefaultProfile() { | |
21 } | |
22 | |
23 public DefaultProfile( | |
24 String [] header, | |
25 char separator, | |
26 char escapeCharacter, | |
27 char quoteCharacter, | |
28 String type, | |
29 String encoding | |
30 ) { | |
31 this.header = header; | |
32 this.separator = separator; | |
33 this.escapeCharacter = escapeCharacter; | |
34 this.quoteCharacter = quoteCharacter; | |
35 this.type = type; | |
36 this.encoding = encoding; | |
37 } | |
38 | |
39 public String toString(int index, String value) { | |
40 return value; | |
41 } | |
42 | |
43 public char getSeparator() { | |
44 return separator; | |
45 } | |
46 | |
47 public char getEscapeCharacter() { | |
48 return escapeCharacter; | |
49 } | |
50 | |
51 public char getQuoteCharacter() { | |
52 return quoteCharacter; | |
53 } | |
54 | |
55 public String getType() { | |
56 return type; | |
57 } | |
58 | |
59 public String getEncoding() { | |
60 return encoding; | |
61 } | |
62 | |
63 public String[] getHeader() { | |
64 return header; | |
65 } | |
66 } |