01: /*
02: * DataFileWriter.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.interfaces;
13:
14: import java.io.File;
15: import java.io.IOException;
16: import workbench.storage.ColumnData;
17:
18: /**
19: *
20: * @author support@sql-workbench.net
21: */
22: public interface DataFileWriter {
23: /**
24: * Creates File object which can be used to write the
25: * BLOB data to an external file
26: */
27: File generateDataFileName(ColumnData column);
28:
29: /**
30: * Write the data contained in the value object
31: * to the File object specified by outputFile
32: */
33: void writeBlobFile(Object value, File outputFile)
34: throws IOException;
35:
36: /**
37: * Write the String to the external file, using the given encoding
38: */
39: void writeClobFile(String value, File outputFile, String encoding)
40: throws IOException;
41:
42: /**
43: * Returns the base directory in which blob
44: * files should be created
45: */
46: File getBaseDir();
47: }
|