|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwind.ogc.kml.io.KMLFile
public class KMLFile
Implements the KMLDoc interface for KML files located within a computer's file system.
| Field Summary | |
|---|---|
protected File |
kmlFile
The File reference specified to the constructor. |
| Constructor Summary | |
|---|---|
KMLFile(File file)
Construct a KMLFile instance. |
|
| Method Summary | |
|---|---|
InputStream |
getKMLStream()
Returns an InputStream to the KML file. |
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 an InputStream to a file indicated by a path relative to the KML file's location. |
File |
getZipFile()
Returns the File specified to the constructor. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected File kmlFile
File reference specified to the constructor.
| Constructor Detail |
|---|
public KMLFile(File file)
file - path to the KML file.
IllegalArgumentException - if the specified file is null.| Method Detail |
|---|
public InputStream getKMLStream()
throws IOException
InputStream to the KML file.
getKMLStream in interface KMLDocIOException - if an error occurs attempting to create the input stream.public String getSupportFilePath(String path)
KMLDoc
getSupportFilePath in interface KMLDocpath - the path of the requested file.
public InputStream getSupportFileStream(String path)
throws IOException
InputStream to a file indicated by a path relative to the KML file's location.
getSupportFileStream in interface KMLDocpath - the path of the requested file.
IOException - if an error occurs while attempting to query or open the file.public File getZipFile()
File specified to the constructor.
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||