public class WriterDocumentTarget extends Object implements OWLOntologyDocumentTarget
Constructor and Description |
---|
WriterDocumentTarget(Writer writer) |
Modifier and Type | Method and Description |
---|---|
Optional<Writer> |
getWriter()
Gets a
Writer that can be used to write an ontology to an
ontology document. |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDocumentIRI, getOutputStream
public WriterDocumentTarget(Writer writer)
writer
- the writer to usepublic Optional<Writer> getWriter()
OWLOntologyDocumentTarget
Writer
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.getWriter
in interface OWLOntologyDocumentTarget
Copyright © 2020 The University of Manchester. All rights reserved.