|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface KMLDoc
Defines the interface for opening a KML or KMZ file or stream and for resolving paths to files referenced by the KML content.
| Method Summary | |
|---|---|
InputStream |
getKMLStream()
Returns an InputStream to the associated KML document within either a KML file or stream or a KMZ file or
stream. |
String |
getSupportFilePath(String path)
Returns an absolute path or URL to a file indicated by a path relative to the KML file's location. |
InputStream |
getSupportFileStream(String path)
Returns a file specified by a path relative to the KML document. |
| Method Detail |
|---|
InputStream getKMLStream()
throws 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.
IOException - if an error occurs while attempting to create or open the input stream.
String getSupportFilePath(String path)
throws IOException
path - the path of the requested file.
IllegalArgumentException - if the specified path is null.
IOException - if an error occurs while attempting to read the support file.
InputStream getSupportFileStream(String path)
throws IOException
path - the path of the requested file.
IllegalArgumentException - if the path is null.
IOException - if an error occurs while attempting to create or open the input stream.
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||