Package org.semanticweb.owlapi.io
Class StreamDocumentTarget
java.lang.Object
org.semanticweb.owlapi.io.StreamDocumentTarget
- All Implemented Interfaces:
OWLOntologyDocumentTarget
- Since:
- 2.2.0
- Author:
- Matthew Horridge, The University Of Manchester, Bio-Health Informatics Group
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets anOutputStream
that can be used to write an ontology to an ontology document.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.semanticweb.owlapi.io.OWLOntologyDocumentTarget
getDocumentIRI, getWriter
-
Constructor Details
-
StreamDocumentTarget
- Parameters:
os
- the actual output stream
-
-
Method Details
-
getOutputStream
Description copied from interface:OWLOntologyDocumentTarget
Gets anOutputStream
that can be used to write an ontology to an ontology document. If none is available, return Optional.absent. Do not call multiple times for the same file: the output file will be opened for write multiple times.- Specified by:
getOutputStream
in interfaceOWLOntologyDocumentTarget
- Returns:
- The output stream
-