public interface OWLOntologyDocumentTarget
isWriterAvailable() returns true), followed by an
OutputStream (if isOutputStreamAvailable() returns true), followed
by trying to open a stream from a document IRI (if isDocumentIRIAvailable
returns true). IRI returned by getDocumentIRI().| Modifier and Type | Method and Description |
|---|---|
IRI |
getDocumentIRI()
Gets an IRI that points to an ontology document.
|
OutputStream |
getOutputStream()
Gets an
OutputStream that can be used to write an
ontology to an ontology document. |
Writer |
getWriter()
Gets a
Writer that can be used to write an ontology to an
ontology document. |
boolean |
isDocumentIRIAvailable()
Determines if an IRI that points to an ontology document is available.
|
boolean |
isOutputStreamAvailable()
Determines if this document target can be pointed to by an
OutputStream. |
boolean |
isWriterAvailable()
Determines if this document target can be pointed to by a
Writer. |
boolean isWriterAvailable()
Writer.true if a Writer can be obtained from
this document target.@Nonnull Writer getWriter() throws IOException
Writer that can be used to write an ontology to an
ontology document.IOException - if there was a problem obtaining the writerOWLRuntimeException - if a writer is not available (isWriterAvailable()
returns false) and this method is called.boolean isOutputStreamAvailable()
OutputStream.true if an OutputStream can be obtained
from this document target.@Nonnull OutputStream getOutputStream() throws IOException
OutputStream that can be used to write an
ontology to an ontology document.IOException - if there was a problem obtaining the output streamOWLRuntimeException - if an output stream is not available (
isOutputStreamAvailable() returns false ) and
this method is called.boolean isDocumentIRIAvailable()
true if an IRI is available, otherwise false.@Nonnull IRI getDocumentIRI()
OWLRuntimeException - if an IRI is not available (isDocumentIRIAvailable()
returns false) and this method is called.Copyright © 2016 The University of Manchester. All Rights Reserved.