de.fuberlin.wiwiss.ng4j.trix
Class TriXWriter

java.lang.Object
  extended by de.fuberlin.wiwiss.ng4j.trix.TriXWriter
All Implemented Interfaces:
NamedGraphSetWriter

public class TriXWriter
extends Object
implements NamedGraphSetWriter

Serializes a NamedGraphSet as a TriX file (see TriX specification).

Author:
Richard Cyganiak (richard@cyganiak.de)

Constructor Summary
TriXWriter()
           
 
Method Summary
 void write(NamedGraphSet set, OutputStream out, String baseURI)
          Serializes a NamedGraphSet into an OutputStream.
 void write(NamedGraphSet set, Writer out, String baseURI)
          Serializes a NamedGraphSet into a Writer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TriXWriter

public TriXWriter()
Method Detail

write

public void write(NamedGraphSet set,
                  Writer out,
                  String baseURI)
Description copied from interface: NamedGraphSetWriter
Serializes a NamedGraphSet into a Writer.

Specified by:
write in interface NamedGraphSetWriter
Parameters:
set - The NamedGraphSet to be serialized
out - The destination
baseURI - A base URI, or null if none is known or needed

write

public void write(NamedGraphSet set,
                  OutputStream out,
                  String baseURI)
Description copied from interface: NamedGraphSetWriter
Serializes a NamedGraphSet into an OutputStream.

Specified by:
write in interface NamedGraphSetWriter
Parameters:
set - The NamedGraphSet to be serialized
out - The destination
baseURI - A base URI, or null if none is known or needed