org.semanticweb.owl.util
Class AbstractOWLOntologyStorer

java.lang.Object
  extended by org.semanticweb.owl.util.AbstractOWLOntologyStorer
All Implemented Interfaces:
OWLOntologyStorer

public abstract class AbstractOWLOntologyStorer
extends java.lang.Object
implements OWLOntologyStorer

Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 04-Dec-2007


Constructor Summary
AbstractOWLOntologyStorer()
           
 
Method Summary
 void storeOntology(OWLOntologyManager manager, OWLOntology ontology, OWLOntologyOutputTarget target, OWLOntologyFormat format)
          Stores an ontology to the specified target.
 void storeOntology(OWLOntologyManager manager, OWLOntology ontology, java.net.URI physicalURI, OWLOntologyFormat ontologyFormat)
          Stores an ontology at the specified physical URI in the specified format.
protected abstract  void storeOntology(OWLOntologyManager manager, OWLOntology ontology, java.io.Writer writer, OWLOntologyFormat format)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.semanticweb.owl.model.OWLOntologyStorer
canStoreOntology
 

Constructor Detail

AbstractOWLOntologyStorer

public AbstractOWLOntologyStorer()
Method Detail

storeOntology

public void storeOntology(OWLOntologyManager manager,
                          OWLOntology ontology,
                          java.net.URI physicalURI,
                          OWLOntologyFormat ontologyFormat)
                   throws OWLOntologyStorageException
Description copied from interface: OWLOntologyStorer
Stores an ontology at the specified physical URI in the specified format.

Specified by:
storeOntology in interface OWLOntologyStorer
Parameters:
manager - The manager
ontology - The ontology to be stored
physicalURI - The physical URI that specifies the location
ontologyFormat - The format that the ontology should be stored in
Throws:
OWLOntologyStorageException - if there was a problem storing the ontology.

storeOntology

public void storeOntology(OWLOntologyManager manager,
                          OWLOntology ontology,
                          OWLOntologyOutputTarget target,
                          OWLOntologyFormat format)
                   throws OWLOntologyStorageException
Description copied from interface: OWLOntologyStorer
Stores an ontology to the specified target. This method assumes the storer can write the ontology to some stream.

Specified by:
storeOntology in interface OWLOntologyStorer
Parameters:
manager - The manager
ontology - The ontology to be stored
target - The target which describes the physical location of where the ontology should be stored
format - The format in which to store the ontology
Throws:
OWLOntologyStorageException - if there was a problem storing the ontology.

storeOntology

protected abstract void storeOntology(OWLOntologyManager manager,
                                      OWLOntology ontology,
                                      java.io.Writer writer,
                                      OWLOntologyFormat format)
                               throws OWLOntologyStorageException
Throws:
OWLOntologyStorageException