public class IRIDocumentSource extends Object implements OWLOntologyDocumentSource
Constructor and Description |
---|
IRIDocumentSource(IRI documentIRI) |
Modifier and Type | Method and Description |
---|---|
IRI |
getDocumentIRI()
Gets the IRI of the ontology document.
|
InputStream |
getInputStream()
If an input stream can be obtained from this document source then this
method creates it.
|
Reader |
getReader()
Gets a reader which an ontology document can be read from.
|
boolean |
isInputStreamAvailable()
Determines if an input stream is available which an ontology document can
be parsed from.
|
boolean |
isReaderAvailable()
Determines if a reader is available which an ontology document can be
parsed from.
|
String |
toString() |
public IRIDocumentSource(IRI documentIRI)
documentIRI
- the source document IRIpublic IRI getDocumentIRI()
OWLOntologyDocumentSource
getDocumentIRI
in interface OWLOntologyDocumentSource
null
.public boolean isInputStreamAvailable()
OWLOntologyDocumentSource
isInputStreamAvailable
in interface OWLOntologyDocumentSource
true
if an input stream can be obtained, false
if
an input stream cannot be obtained from this document source.public InputStream getInputStream()
OWLOntologyDocumentSource
isInputStreamAvailable
method returns false
.getInputStream
in interface OWLOntologyDocumentSource
public boolean isReaderAvailable()
OWLOntologyDocumentSource
isReaderAvailable
in interface OWLOntologyDocumentSource
true
if a reader can be obtained from this document
source, or false
if a reader cannot be obtained from this
document source.public Reader getReader()
OWLOntologyDocumentSource
Reader
. This method should not be called if the
isReaderAvailable
method returns false. A Runtime
execption will be thrown if this happens.getReader
in interface OWLOntologyDocumentSource
Reader
which the ontology can be read from.Copyright © 2017 The University of Manchester. All Rights Reserved.