|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.semanticweb.owl.io.StreamInputSource
public class StreamInputSource
Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 15-Nov-2007
An ontology input source which can read from a stream.
Constructor Summary | |
---|---|
StreamInputSource(java.io.InputStream is)
Constructs an input source which will read an ontology from a representation from the specified stream. |
|
StreamInputSource(java.io.InputStream stream,
java.net.URI physicalURI)
Constructs an input source which will read an ontology from a representation from the specified stream. |
Method Summary | |
---|---|
java.io.InputStream |
getInputStream()
If an input stream can be obtained from this input source then this method creates it. |
java.net.URI |
getPhysicalURI()
Gets the physical URI of the ontology. |
java.io.Reader |
getReader()
Gets a reader which can be used to read an ontology from. |
boolean |
isInputStreamAvailable()
Determines if an input stream is available which an ontology can be parsed from. |
boolean |
isReaderAvailable()
Determines if a reader is available which an ontology can be parsed from. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StreamInputSource(java.io.InputStream is)
is
- The stream that the ontology representation will be
read from.public StreamInputSource(java.io.InputStream stream, java.net.URI physicalURI)
stream
- The stream that the ontology representation will be
read from.physicalURI
- The physical URI which will be used as the base
of the document if needed.Method Detail |
---|
public boolean isInputStreamAvailable()
OWLOntologyInputSource
isInputStreamAvailable
in interface OWLOntologyInputSource
true
if an input stream can be obtained,
false
if an input stream cannot be obtained from
this input source.public java.io.InputStream getInputStream()
OWLOntologyInputSource
isInputStreamAvailable
method returns false
.
getInputStream
in interface OWLOntologyInputSource
public java.net.URI getPhysicalURI()
OWLOntologyInputSource
getPhysicalURI
in interface OWLOntologyInputSource
null
.public java.io.Reader getReader()
OWLOntologyInputSource
Reader
. This method should not be called if the
isReaderAvailable
method returns false
getReader
in interface OWLOntologyInputSource
Reader
which the ontology can be read from.public boolean isReaderAvailable()
OWLOntologyInputSource
isReaderAvailable
in interface OWLOntologyInputSource
true
if a reader can be ontained from this
input source, or false
if a reader cannot be obtained
from this input source.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |