org.openrdf.rio.ntriples
Class NTriplesWriterFactory

java.lang.Object
  extended by org.openrdf.rio.ntriples.NTriplesWriterFactory
All Implemented Interfaces:
RDFWriterFactory

public class NTriplesWriterFactory
extends Object
implements RDFWriterFactory

An RDFWriterFactory for N-Triples writers.

Author:
Arjohn Kampman

Constructor Summary
NTriplesWriterFactory()
           
 
Method Summary
 RDFFormat getRDFFormat()
          Returns RDFFormat.NTRIPLES.
 RDFWriter getWriter(OutputStream out)
          Returns a new instance of NTriplesWriter.
 RDFWriter getWriter(Writer writer)
          Returns a new instance of NTriplesWriter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NTriplesWriterFactory

public NTriplesWriterFactory()
Method Detail

getRDFFormat

public RDFFormat getRDFFormat()
Returns RDFFormat.NTRIPLES.

Specified by:
getRDFFormat in interface RDFWriterFactory

getWriter

public RDFWriter getWriter(OutputStream out)
Returns a new instance of NTriplesWriter.

Specified by:
getWriter in interface RDFWriterFactory
Parameters:
out - The OutputStream to write the RDF to.

getWriter

public RDFWriter getWriter(Writer writer)
Returns a new instance of NTriplesWriter.

Specified by:
getWriter in interface RDFWriterFactory
Parameters:
writer - The Writer to write the RDF to.


Copyright © 2001-2008 Aduna. All Rights Reserved.