Package org.semanticweb.owlapi.io
Class ReaderDocumentSource
java.lang.Object
org.semanticweb.owlapi.io.OWLOntologyDocumentSourceBase
org.semanticweb.owlapi.io.StreamDocumentSourceBase
org.semanticweb.owlapi.io.ReaderDocumentSource
- All Implemented Interfaces:
OWLOntologyDocumentSource
An ontology document source which reads an ontology from a reader.
- Since:
- 2.2.0
- Author:
- Matthew Horridge, The University Of Manchester, Bio-Health Informatics Group
-
Constructor Summary
ConstructorsConstructorDescriptionReaderDocumentSource
(Reader reader) Constructs and ontology input source which will read an ontology from a reader.ReaderDocumentSource
(Reader reader, IRI iri) Constructs and ontology input source which will read an ontology from a reader.ReaderDocumentSource
(Reader reader, IRI iri, OWLDocumentFormat f, String mime) Constructs and ontology input source which will read an ontology from a reader. -
Method Summary
Methods inherited from class org.semanticweb.owlapi.io.StreamDocumentSourceBase
getInputStream, getReader
Methods inherited from class org.semanticweb.owlapi.io.OWLOntologyDocumentSourceBase
getAcceptHeaders, getDocumentIRI, getFormat, getMIMEType, hasAlredyFailedOnIRIResolution, hasAlredyFailedOnStreams, setAcceptHeaders, setIRIResolutionFailed
-
Constructor Details
-
ReaderDocumentSource
Constructs and ontology input source which will read an ontology from a reader.- Parameters:
reader
- The reader that will be used to read an ontology.
-
ReaderDocumentSource
Constructs and ontology input source which will read an ontology from a reader.- Parameters:
reader
- The reader that will be used to read an ontology.iri
- The ontology document IRI which will be used as the base of the document if needed.
-
ReaderDocumentSource
public ReaderDocumentSource(Reader reader, IRI iri, @Nullable OWLDocumentFormat f, @Nullable String mime) Constructs and ontology input source which will read an ontology from a reader.- Parameters:
reader
- The reader that will be used to read an ontology.iri
- The ontology document IRI which will be used as the base of the document if needed.f
- ontology formatmime
- mime type
-