01: /*
02: * TextExportWriter.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.exporter;
13:
14: /**
15: *
16: * @author support@sql-workbench.net
17: */
18: public class TextExportWriter extends ExportWriter {
19: public TextExportWriter(DataExporter exp) {
20: super (exp);
21: }
22:
23: public RowDataConverter createConverter() {
24: return new TextRowDataConverter();
25: }
26:
27: public void configureConverter() {
28: super .configureConverter();
29: TextRowDataConverter conv = (TextRowDataConverter) this.converter;
30: conv.setDelimiter(exporter.getTextDelimiter());
31: conv.setQuoteCharacter(exporter.getTextQuoteChar());
32: conv.setQuoteAlways(exporter.getQuoteAlways());
33: conv.setEscapeRange(exporter.getEscapeRange());
34: conv.setLineEnding(exporter.getLineEnding());
35: conv.setWriteClobToFile(exporter.getWriteClobAsFile());
36: conv.setQuoteEscaping(exporter.getQuoteEscaping());
37: }
38:
39: }
|