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()
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
public Optional<OutputStream> getOutputStream()
OWLOntologyDocumentTarget
OutputStream
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 OWLOntologyDocumentTarget
public Optional<IRI> getDocumentIRI()
OWLOntologyDocumentTarget
getDocumentIRI
in interface OWLOntologyDocumentTarget
Copyright © 2020 The University of Manchester. All rights reserved.