OWLOntologyDocumentSource
public class StringDocumentSource extends OWLOntologyDocumentSourceBase
Constructor | Description |
---|---|
StringDocumentSource(String string) |
|
StringDocumentSource(String string,
IRI iri) |
|
StringDocumentSource(String string,
IRI documentIRI,
OWLDocumentFormat f,
String mime) |
Specifies a string as an ontology document.
|
StringDocumentSource(StringDocumentTarget target) |
Modifier and Type | Method | 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.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAcceptHeaders, getFormat, getMIMEType, getNextDocumentIRI, isFormatKnown, isMIMETypeKnown, setAcceptHeaders, wrap
public StringDocumentSource(@Nonnull String string)
string
- the source stringpublic StringDocumentSource(@Nonnull String string, @Nonnull IRI iri)
string
- the source stringiri
- The document IRIpublic StringDocumentSource(@Nonnull StringDocumentTarget target)
target
- a document targetpublic boolean isReaderAvailable()
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.Reader
which the ontology can be read from.public boolean isInputStreamAvailable()
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
.public IRI getDocumentIRI()
OWLOntologyDocumentSource
Copyright © 2018 The University of Manchester. All rights reserved.