01: /*
02: * DefaultTextImportOptions.java
03: *
04: * This file is part of SQL Workbench/J, http://www.sql-workbench.net
05: *
06: * Copyright 2002-2008, Thomas Kellerer
07: * No part of this code maybe reused without the permission of the author
08: *
09: * To contact the author please send an email to: support@sql-workbench.net
10: *
11: */
12: package workbench.db.importer;
13:
14: import workbench.gui.dialogs.dataimport.TextImportOptions;
15: import workbench.resource.Settings;
16:
17: /**
18: * @author support@sql-workbench.net
19: */
20: public class DefaultTextImportOptions implements TextImportOptions {
21: private String delimiter;
22: private String quoteChar;
23:
24: public DefaultTextImportOptions(String delim, String quote) {
25: this .delimiter = delim;
26: this .quoteChar = quote;
27: }
28:
29: public String getTextDelimiter() {
30: return delimiter;
31: }
32:
33: public boolean getContainsHeader() {
34: return true;
35: }
36:
37: public String getTextQuoteChar() {
38: return quoteChar;
39: }
40:
41: public boolean getDecode() {
42: return false;
43: }
44:
45: public String getDecimalChar() {
46: return Settings.getInstance().getDecimalSymbol();
47: }
48:
49: public void setTextDelimiter(String delim) {
50: }
51:
52: public void setContainsHeader(boolean flag) {
53: }
54:
55: public void setTextQuoteChar(String quote) {
56: }
57:
58: public void setDecode(boolean flag) {
59: }
60:
61: public void setDecimalChar(String s) {
62: }
63:
64: }
|