public abstract class StreamDocumentSourceBase extends OWLOntologyDocumentSourceBase
Constructor and Description |
---|
StreamDocumentSourceBase(InputStream stream,
IRI documentIRI,
OWLDocumentFormat format,
String mime)
Constructs an input source which will read an ontology from a representation from the
specified stream.
|
StreamDocumentSourceBase(Reader 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 StreamDocumentSourceBase(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 StreamDocumentSourceBase(Reader 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.