Class AbstractOWLRenderer

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

public abstract class AbstractOWLRenderer extends Object implements OWLRenderer
Since:
2.0.0
Author:
Matthew Horridge, The University Of Manchester, Bio-Health Informatics Group
  • Method Details

    • render

      public void render(OWLOntology ontology, 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 output stream
      Throws:
      OWLRendererException
    • render

      public abstract void render(OWLOntology ontology, PrintWriter writer) throws OWLRendererException
      Renders the specified ontology using the specified writer.
      Parameters:
      ontology - the ontology to render
      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 - if exceptions arise