01: /*
02: * Copyright Aduna (http://www.aduna-software.com/) (c) 2007.
03: *
04: * Licensed under the Aduna BSD-style license.
05: */
06: package org.openrdf.rio;
07:
08: import java.io.OutputStream;
09: import java.io.Writer;
10:
11: /**
12: * A RDFWriterFactory returns {@link RDFWriter}s for a specific RDF format.
13: *
14: * @author Arjohn Kampman
15: */
16: public interface RDFWriterFactory {
17:
18: /**
19: * Returns the RDF format for this factory.
20: */
21: public RDFFormat getRDFFormat();
22:
23: /**
24: * Returns an RDFWriter instance that will write to the supplied output
25: * stream.
26: *
27: * @param out
28: * The OutputStream to write the RDF to.
29: */
30: public RDFWriter getWriter(OutputStream out);
31:
32: /**
33: * Returns an RDFWriter instance that will write to the supplied writer.
34: *
35: * @param writer
36: * The Writer to write the RDF to.
37: */
38: public RDFWriter getWriter(Writer writer);
39: }
|