public class FileDocumentTarget extends Object implements OWLOntologyDocumentTarget
OWLOntologyDocumentTarget that supports writing out to a
File.| Constructor and Description |
|---|
FileDocumentTarget(File file)
Constructs the document target, with the target being the specified file.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<IRI> |
getDocumentIRI()
Gets an IRI that points to an ontology document.
|
Optional<OutputStream> |
getOutputStream()
Gets an
OutputStream that can be used to write an
ontology to an ontology document. |
Optional<Writer> |
getWriter()
Gets a
Writer that can be used to write an ontology to an
ontology document. |
public FileDocumentTarget(File file)
file - The file that is the target.public Optional<Writer> getWriter()
OWLOntologyDocumentTargetWriter 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 OWLOntologyDocumentTargetpublic Optional<OutputStream> getOutputStream()
OWLOntologyDocumentTargetOutputStream 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.getOutputStream in interface OWLOntologyDocumentTargetpublic Optional<IRI> getDocumentIRI()
OWLOntologyDocumentTargetgetDocumentIRI in interface OWLOntologyDocumentTargetCopyright © 2018 The University of Manchester. All rights reserved.