Modifier and Type | Field and Description |
---|---|
protected java.io.InputStream |
inputStream
The
InputStream specified to the constructor. |
protected java.net.URI |
uri
The URI of this KML document.
|
Constructor and Description |
---|
KMLInputStream(java.io.InputStream sourceStream,
java.net.URI uri)
Construct a
KMLInputStream instance. |
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
getKMLStream()
Returns the input stream reference passed to the constructor.
|
java.lang.String |
getSupportFilePath(java.lang.String path)
Resolve references against the document's URI.
|
java.io.InputStream |
getSupportFileStream(java.lang.String path)
Resolve references against the document's URI.
|
protected java.io.InputStream inputStream
InputStream
specified to the constructor.protected java.net.URI uri
null
.public KMLInputStream(java.io.InputStream sourceStream, java.net.URI uri) throws java.io.IOException
KMLInputStream
instance.sourceStream
- the KML stream.uri
- the URI of this KML document. This URI is used to resolve relative references. May be null
.java.lang.IllegalArgumentException
- if the specified input stream is null.java.io.IOException
- if an error occurs while attempting to read from the stream.public java.io.InputStream getKMLStream() throws java.io.IOException
getKMLStream
in interface KMLDoc
java.io.IOException
- if an error occurs while attempting to create or open the input stream.public java.lang.String getSupportFilePath(java.lang.String path)
getSupportFilePath
in interface KMLDoc
path
- the path of the requested file.null
if the document does not have a base URI.public java.io.InputStream getSupportFileStream(java.lang.String path) throws java.io.IOException
getSupportFileStream
in interface KMLDoc
path
- the path of the requested file.java.io.IOException
- if an error occurs while attempting to query or open the file.