org.semanticweb.owlapi.io
Interface OWLOntologyOutputTarget

All Known Implementing Classes:
StreamOutputTarget, StringOutputTarget, WriterOutputTarget, ZipOutputTarget

public interface OWLOntologyOutputTarget

Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 18-Nov-2007

Specifies an interface to access a stream which can be used to store an ontology. Any OWLOntologyStorer that uses this interface will first try to obtain a writer (if isWriterAvailable returns true), followed by an OutputStream (if isOutputStreamAvailable returns true), followed by trying to open a stream from a physical URI (if isPhysicalURIAvailable returns true)


Method Summary
 java.io.OutputStream getOutputStream()
           
 java.net.URI getPhysicalURI()
           
 java.io.Writer getWriter()
           
 boolean isOutputStreamAvailable()
           
 boolean isPhysicalURIAvailable()
           
 boolean isWriterAvailable()
           
 

Method Detail

isWriterAvailable

boolean isWriterAvailable()

getWriter

java.io.Writer getWriter()
                         throws java.io.IOException
Throws:
java.io.IOException

isOutputStreamAvailable

boolean isOutputStreamAvailable()

getOutputStream

java.io.OutputStream getOutputStream()
                                     throws java.io.IOException
Throws:
java.io.IOException

isPhysicalURIAvailable

boolean isPhysicalURIAvailable()

getPhysicalURI

java.net.URI getPhysicalURI()