Package org.semanticweb.owlapi.io
Class FileDocumentTarget
java.lang.Object
org.semanticweb.owlapi.io.FileDocumentTarget
- All Implemented Interfaces:
OWLOntologyDocumentTarget
An
OWLOntologyDocumentTarget
that supports writing out to a
File
.- Since:
- 3.2.0
- Author:
- Matthew Horridge, The University of Manchester, Bio-Health Informatics Group
-
Constructor Summary
ConstructorsConstructorDescriptionFileDocumentTarget
(File file) Constructs the document target, with the target being the specified file. -
Method Summary
Modifier and TypeMethodDescriptionGets an IRI that points to an ontology document.Gets anOutputStream
that can be used to write an ontology to an ontology document.Gets aWriter
that can be used to write an ontology to an ontology document.
-
Constructor Details
-
FileDocumentTarget
Constructs the document target, with the target being the specified file.- Parameters:
file
- The file that is the target.
-
-
Method Details
-
getWriter
Description copied from interface:OWLOntologyDocumentTarget
Gets aWriter
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:
getWriter
in interfaceOWLOntologyDocumentTarget
- Returns:
- The writer
-
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
-
getDocumentIRI
Description copied from interface:OWLOntologyDocumentTarget
Gets an IRI that points to an ontology document. If none is available, return Optional.absent.- Specified by:
getDocumentIRI
in interfaceOWLOntologyDocumentTarget
- Returns:
- The IRI
-