public class XZStreamDocumentSource extends OWLOntologyDocumentSourceBase
Constructor and Description |
---|
XZStreamDocumentSource(InputStream is)
Constructs an input source which will read an ontology from a
representation from the specified file.
|
XZStreamDocumentSource(InputStream stream,
IRI documentIRI,
OWLDocumentFormat format,
String mime)
Constructs an input source which will read an ontology from a
representation from the specified stream.
|
Modifier and Type | Method and Description |
---|---|
Optional<InputStream> |
getInputStream()
If an input stream can be obtained from this document source then this method creates it.
|
Optional<Reader> |
getReader()
Gets a reader which an ontology document can be read from.
|
getAcceptHeaders, getDocumentIRI, getFormat, getMIMEType, hasAlredyFailedOnIRIResolution, hasAlredyFailedOnStreams, setAcceptHeaders, setIRIResolutionFailed
public XZStreamDocumentSource(InputStream is)
is
- The stream that the ontology representation will be read from.public XZStreamDocumentSource(InputStream stream, IRI documentIRI, @Nullable OWLDocumentFormat format, @Nullable String mime)
stream
- The stream that the ontology representation will be read from.documentIRI
- The document IRIformat
- ontology formatmime
- mime typepublic Optional<InputStream> getInputStream()
OWLOntologyDocumentSource
public Optional<Reader> getReader()
OWLOntologyDocumentSource
Reader
. If there is no reader stream
available, returns Optional.absent.Reader
which the ontology can be read from, wrapped in an Optional.Copyright © 2020 The University of Manchester. All rights reserved.