org.semanticweb.owlapi.io
Class AbstractOWLRenderer

java.lang.Object
  extended by org.semanticweb.owlapi.io.AbstractOWLRenderer
All Implemented Interfaces:
OWLRenderer
Direct Known Subclasses:
KRSS2OWLSyntaxRenderer, KRSS2SyntaxRenderer, KRSSSyntaxRenderer, LatexRenderer, ManchesterOWLSyntaxRenderer, OBOFlatFileRenderer, OWLFunctionalSyntaxRenderer, OWLXMLRenderer

public abstract class AbstractOWLRenderer
extends java.lang.Object
implements OWLRenderer

Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 14-Nov-2006


Constructor Summary
protected AbstractOWLRenderer(OWLOntologyManager owlOntologyManager)
           
 
Method Summary
protected  OWLOntologyManager getOWLOntologyManager()
           
 void render(OWLOntology ontology, java.io.OutputStream os)
          Renders the specified ontology to a concrete representation which should be written to the specified output stream
abstract  void render(OWLOntology ontology, java.io.Writer writer)
          Renders the specified ontology using the specified writer.
 void setOWLOntologyManager(OWLOntologyManager owlOntologyManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractOWLRenderer

protected AbstractOWLRenderer(OWLOntologyManager owlOntologyManager)
Method Detail

setOWLOntologyManager

public void setOWLOntologyManager(OWLOntologyManager owlOntologyManager)
Specified by:
setOWLOntologyManager in interface OWLRenderer

getOWLOntologyManager

protected OWLOntologyManager getOWLOntologyManager()

render

public void render(OWLOntology ontology,
                   java.io.OutputStream os)
            throws OWLRendererException
Description copied from interface: OWLRenderer
Renders the specified ontology to a concrete representation which should be written to the specified output stream

Specified by:
render in interface OWLRenderer
Parameters:
ontology - The ontology
os - The OutputStream
Throws:
OWLRendererException

render

public abstract void render(OWLOntology ontology,
                            java.io.Writer writer)
                     throws OWLRendererException
Renders the specified ontology using the specified writer.

Parameters:
writer - The writer that should be used to write the ontology. Note that this writer need not be wrapped with a BufferedWriter because this is taken care of by this abstract implementation.
Throws:
OWLRendererException