public interface KMLDoc
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
getKMLStream()
Returns an
InputStream to the associated KML document within either a KML file or stream or a KMZ file or
stream. |
java.lang.String |
getSupportFilePath(java.lang.String path)
Returns an absolute path or URL to a file indicated by a path relative to the KML file's location.
|
java.io.InputStream |
getSupportFileStream(java.lang.String path)
Returns a file specified by a path relative to the KML document.
|
java.io.InputStream getKMLStream() throws java.io.IOException
InputStream
to the associated KML document within either a KML file or stream or a KMZ file or
stream.
Implementations of this interface do not close the stream; the user of the class must close the stream.java.io.IOException
- if an error occurs while attempting to create or open the input stream.java.lang.String getSupportFilePath(java.lang.String path) throws java.io.IOException
path
- the path of the requested file.java.lang.IllegalArgumentException
- if the specified path is null.java.io.IOException
- if an error occurs while attempting to read the support file.java.io.InputStream getSupportFileStream(java.lang.String path) throws java.io.IOException
path
- the path of the requested file.java.lang.IllegalArgumentException
- if the path is null.java.io.IOException
- if an error occurs while attempting to create or open the input stream.