| Modifier and Type | Field and Description | 
|---|---|
| protected InputStream | inputStreamThe  InputStreamspecified to the constructor. | 
| protected URI | uriThe URI of this KML document. | 
| Constructor and Description | 
|---|
| KMLInputStream(InputStream sourceStream,
              URI uri)Construct a  KMLInputStreaminstance. | 
| Modifier and Type | Method and Description | 
|---|---|
| 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. | 
protected InputStream inputStream
InputStream specified to the constructor.protected URI uri
null.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.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.