01: /*
02: * OutputFactory.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.util;
13:
14: import java.io.File;
15: import java.io.IOException;
16: import java.io.OutputStream;
17: import java.io.Writer;
18:
19: /**
20: *
21: * @author support@sql-workbench.net
22: */
23: public interface OutputFactory {
24: OutputStream createOutputStream(File output) throws IOException;
25:
26: Writer createWriter(File output, String encoding)
27: throws IOException;
28:
29: Writer createWriter(String filename, String encoding)
30: throws IOException;
31:
32: void done() throws IOException;
33:
34: boolean isArchive();
35: }
|