public class StreamDocumentTarget extends Object implements OWLOntologyDocumentTarget
| Constructor and Description |
|---|
StreamDocumentTarget(OutputStream os) |
| 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. |
public StreamDocumentTarget(@Nonnull OutputStream os)
os - the actual output streampublic boolean isWriterAvailable()
OWLOntologyDocumentTargetWriter.isWriterAvailable in interface OWLOntologyDocumentTargettrue if a Writer can be obtained from
this document target.@Nonnull public Writer getWriter()
OWLOntologyDocumentTargetWriter that can be used to write an ontology to an
ontology document.getWriter in interface OWLOntologyDocumentTargetpublic boolean isOutputStreamAvailable()
OWLOntologyDocumentTargetOutputStream.isOutputStreamAvailable in interface OWLOntologyDocumentTargettrue if an OutputStream can be obtained
from this document target.public OutputStream getOutputStream()
OWLOntologyDocumentTargetOutputStream that can be used to write an
ontology to an ontology document.getOutputStream in interface OWLOntologyDocumentTargetpublic boolean isDocumentIRIAvailable()
OWLOntologyDocumentTargetisDocumentIRIAvailable in interface OWLOntologyDocumentTargettrue if an IRI is available, otherwise false.public IRI getDocumentIRI()
OWLOntologyDocumentTargetgetDocumentIRI in interface OWLOntologyDocumentTargetCopyright © 2020 The University of Manchester. All rights reserved.