|
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.KMLInputStream
public class KMLInputStream
Implements the KMLDoc interface for KML files read directly from input streams.
| Field Summary | |
|---|---|
protected InputStream |
inputStream
The InputStream specified to the constructor. |
protected URI |
uri
The URI of this KML document. |
| Constructor Summary | |
|---|---|
KMLInputStream(InputStream sourceStream,
URI uri)
Construct a KMLInputStream instance. |
|
| Method Summary | |
|---|---|
InputStream |
getKMLStream()
Returns the input stream reference passed to the constructor. |
String |
getSupportFilePath(String path)
Resolve references against the document's URI. |
InputStream |
getSupportFileStream(String path)
Resolve references against the document's URI. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected InputStream inputStream
InputStream specified to the constructor.
protected URI uri
null.
| Constructor Detail |
|---|
public KMLInputStream(InputStream sourceStream,
URI uri)
throws 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.
IllegalArgumentException - if the specified input stream is null.
IOException - if an error occurs while attempting to read from the stream.| Method Detail |
|---|
public InputStream getKMLStream()
throws IOException
getKMLStream in interface KMLDocIOException - if an error occurs while attempting to create or open the input stream.public String getSupportFilePath(String path)
getSupportFilePath in interface KMLDocpath - the path of the requested file.
null if the document does not have a base URI.
public InputStream getSupportFileStream(String path)
throws IOException
getSupportFileStream in interface KMLDocpath - the path of the requested file.
IOException - if an error occurs while attempting to query or open the file.
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||