Package org.semanticweb.owlapi.io
Class StreamDocumentSource
java.lang.Object
org.semanticweb.owlapi.io.OWLOntologyDocumentSourceBase
org.semanticweb.owlapi.io.StreamDocumentSourceBase
org.semanticweb.owlapi.io.StreamDocumentSource
- All Implemented Interfaces:
OWLOntologyDocumentSource
An ontology document source which can read from a stream.
- Since:
- 2.2.0
- Author:
- Matthew Horridge, The University Of Manchester, Bio-Health Informatics Group
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an input source which will read an ontology from a representation from the specified stream.StreamDocumentSource
(InputStream stream, String prefix, OWLDocumentFormat f, String mime) Constructs an input source which will read an ontology from a representation from the specified stream.StreamDocumentSource
(InputStream is, IRI iri) Constructs an input source which will read an ontology from a representation from the specified stream.StreamDocumentSource
(InputStream stream, IRI documentIRI, OWLDocumentFormat f, String mime) Constructs an input source which will read an ontology from a representation from the specified stream. -
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
-
StreamDocumentSource
Constructs an input source which will read an ontology from a representation from the specified stream.- Parameters:
is
- The stream that the ontology representation will be read from.
-
StreamDocumentSource
Constructs an input source which will read an ontology from a representation from the specified stream.- Parameters:
is
- The stream that the ontology representation will be read from.iri
- The document IRI
-
StreamDocumentSource
public StreamDocumentSource(InputStream stream, IRI documentIRI, @Nullable OWLDocumentFormat f, @Nullable String mime) Constructs an input source which will read an ontology from a representation from the specified stream.- Parameters:
stream
- The stream that the ontology representation will be read from.documentIRI
- The document IRIf
- ontology formatmime
- mime type
-
StreamDocumentSource
public StreamDocumentSource(InputStream stream, String prefix, @Nullable OWLDocumentFormat f, @Nullable String mime) Constructs an input source which will read an ontology from a representation from the specified stream.- Parameters:
stream
- The stream that the ontology representation will be read from.prefix
- The document IRI prefixf
- ontology formatmime
- mime type
-