public class ColladaInputStream extends java.lang.Object implements ColladaDoc
| Modifier and Type | Field and Description |
|---|---|
protected java.io.InputStream |
inputStream
The
InputStream specified to the constructor. |
protected java.net.URI |
uri
The URI of this COLLADA document.
|
| Constructor and Description |
|---|
ColladaInputStream(java.io.InputStream sourceStream,
java.net.URI uri)
Construct a
ColladaInputStream instance. |
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
getInputStream()
Returns the input stream reference passed to the constructor.
|
java.lang.String |
getSupportFilePath(java.lang.String path)
Returns an absolute path or URL to a file indicated by a path relative to the COLLADA file's location.
|
protected java.io.InputStream inputStream
InputStream specified to the constructor.protected java.net.URI uri
null.public ColladaInputStream(java.io.InputStream sourceStream,
java.net.URI uri)
throws java.io.IOException
ColladaInputStream instance.sourceStream - the COLLADA stream.uri - the URI of this COLLADA document. This URI is used to resolve relative references. May be
null.java.lang.IllegalArgumentException - if the specified input stream is null.java.io.IOException - if an error occurs while attempting to read from the stream.public java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in interface ColladaDocjava.io.IOException - if an error occurs while attempting to create or open the input stream.public java.lang.String getSupportFilePath(java.lang.String path)
getSupportFilePath in interface ColladaDocpath - the path of the requested file.