com.github.jsonldjava.impl
Class SesameJSONLDWriter

java.lang.Object
  extended by org.openrdf.rio.helpers.RDFWriterBase
      extended by com.github.jsonldjava.impl.SesameJSONLDWriter
All Implemented Interfaces:
org.openrdf.rio.RDFHandler, org.openrdf.rio.RDFWriter

public class SesameJSONLDWriter
extends org.openrdf.rio.helpers.RDFWriterBase
implements org.openrdf.rio.RDFWriter

Author:
Peter Ansell p_ansell@yahoo.com

Field Summary
 
Fields inherited from class org.openrdf.rio.helpers.RDFWriterBase
namespaceTable
 
Constructor Summary
SesameJSONLDWriter(OutputStream outputStream)
          Create a SesameJSONLDWriter using a java.io.OutputStream
SesameJSONLDWriter(Writer nextWriter)
          Create a SesameJSONLDWriter using a java.io.Writer
 
Method Summary
 void endRDF()
           
 org.openrdf.rio.RDFFormat getRDFFormat()
           
 void handleComment(String comment)
           
 void handleNamespace(String prefix, String uri)
           
 void handleStatement(org.openrdf.model.Statement st)
           
 void startRDF()
           
 
Methods inherited from class org.openrdf.rio.helpers.RDFWriterBase
getSupportedSettings, getWriterConfig, setWriterConfig
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openrdf.rio.RDFWriter
getSupportedSettings, getWriterConfig, setWriterConfig
 

Constructor Detail

SesameJSONLDWriter

public SesameJSONLDWriter(OutputStream outputStream)
Create a SesameJSONLDWriter using a java.io.OutputStream

Parameters:
outputStream -

SesameJSONLDWriter

public SesameJSONLDWriter(Writer nextWriter)
Create a SesameJSONLDWriter using a java.io.Writer

Method Detail

handleNamespace

public void handleNamespace(String prefix,
                            String uri)
                     throws org.openrdf.rio.RDFHandlerException
Specified by:
handleNamespace in interface org.openrdf.rio.RDFHandler
Overrides:
handleNamespace in class org.openrdf.rio.helpers.RDFWriterBase
Throws:
org.openrdf.rio.RDFHandlerException

startRDF

public void startRDF()
              throws org.openrdf.rio.RDFHandlerException
Specified by:
startRDF in interface org.openrdf.rio.RDFHandler
Throws:
org.openrdf.rio.RDFHandlerException

endRDF

public void endRDF()
            throws org.openrdf.rio.RDFHandlerException
Specified by:
endRDF in interface org.openrdf.rio.RDFHandler
Throws:
org.openrdf.rio.RDFHandlerException

handleStatement

public void handleStatement(org.openrdf.model.Statement st)
                     throws org.openrdf.rio.RDFHandlerException
Specified by:
handleStatement in interface org.openrdf.rio.RDFHandler
Throws:
org.openrdf.rio.RDFHandlerException

handleComment

public void handleComment(String comment)
                   throws org.openrdf.rio.RDFHandlerException
Specified by:
handleComment in interface org.openrdf.rio.RDFHandler
Throws:
org.openrdf.rio.RDFHandlerException

getRDFFormat

public org.openrdf.rio.RDFFormat getRDFFormat()
Specified by:
getRDFFormat in interface org.openrdf.rio.RDFWriter


Copyright © 2013. All Rights Reserved.