public class ReaderDocumentSource extends Object implements OWLOntologyDocumentSource
| Constructor and Description |
|---|
ReaderDocumentSource(Reader reader)
Constructs and ontology input source which will read an ontology from a
reader.
|
ReaderDocumentSource(Reader reader,
IRI documentIRI)
Constructs and ontology input source which will read an ontology from a
reader.
|
| 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.
|
static IRI |
getNextDocumentIRI() |
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.
|
public ReaderDocumentSource(Reader reader)
reader - The reader that will be used to read an ontology.public ReaderDocumentSource(Reader reader, IRI documentIRI)
reader - The reader that will be used to read an ontology.documentIRI - The ontology document IRI which will be used as the base of the
document if needed.public static IRI getNextDocumentIRI()
public IRI getDocumentIRI()
OWLOntologyDocumentSourcegetDocumentIRI in interface OWLOntologyDocumentSourcenull.public Reader getReader()
OWLOntologyDocumentSourceReader. This method should not be called if the
isReaderAvailable method returns false. A Runtime
execption will be thrown if this happens.getReader in interface OWLOntologyDocumentSourceReader which the ontology can be read from.public boolean isReaderAvailable()
OWLOntologyDocumentSourceisReaderAvailable in interface OWLOntologyDocumentSourcetrue if a reader can be obtained from this document
source, or false if a reader cannot be obtained from this
document source.public boolean isInputStreamAvailable()
OWLOntologyDocumentSourceisInputStreamAvailable in interface OWLOntologyDocumentSourcetrue if an input stream can be obtained, false if
an input stream cannot be obtained from this document source.public InputStream getInputStream()
OWLOntologyDocumentSourceisInputStreamAvailable method returns false.getInputStream in interface OWLOntologyDocumentSourceCopyright © 2014 The University of Manchester. All Rights Reserved.