org.openrdf.rio.trig
Class TriGWriterFactory

java.lang.Object
  extended by org.openrdf.rio.trig.TriGWriterFactory
All Implemented Interfaces:
RDFWriterFactory

public class TriGWriterFactory
extends Object
implements RDFWriterFactory

An RDFWriterFactory for TriG parsers.

Author:
Arjohn Kampman

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

Constructor Detail

TriGWriterFactory

public TriGWriterFactory()
Method Detail

getRDFFormat

public RDFFormat getRDFFormat()
Returns RDFFormat.TRIG.

Specified by:
getRDFFormat in interface RDFWriterFactory

getWriter

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

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 TriGWriter.

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


Copyright © 2001-2009 Aduna. All Rights Reserved.