|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.semanticweb.owlapi.io.ReaderDocumentSource
public class ReaderDocumentSource
Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 17-Nov-2007
An ontology document source which reads an ontology from a reader.
Field Summary | |
---|---|
static java.lang.String |
DOCUMENT_IRI_SCHEME
|
Constructor Summary | |
---|---|
ReaderDocumentSource(java.io.Reader reader)
Constructs and ontology input source which will read an ontology from a reader. |
|
ReaderDocumentSource(java.io.Reader reader,
IRI documentIRI)
Constructs and ontology input source which will read an ontology from a reader. |
Method Summary | |
---|---|
IRI |
getDocumentIRI()
Gets the IRI of the ontology document. |
java.io.InputStream |
getInputStream()
If an input stream can be obtained from this document source then this method creates it. |
static IRI |
getNextDocumentIRI()
|
java.io.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DOCUMENT_IRI_SCHEME
Constructor Detail |
---|
public ReaderDocumentSource(java.io.Reader reader)
reader
- The reader that will be used to read an ontology.public ReaderDocumentSource(java.io.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.Method Detail |
---|
public static IRI getNextDocumentIRI()
public IRI getDocumentIRI()
OWLOntologyDocumentSource
getDocumentIRI
in interface OWLOntologyDocumentSource
null
.public java.io.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.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 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 java.io.InputStream getInputStream()
OWLOntologyDocumentSource
isInputStreamAvailable
method returns false
.
getInputStream
in interface OWLOntologyDocumentSource
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |