public class ColladaFile extends java.lang.Object implements ColladaDoc
Modifier and Type | Field and Description |
---|---|
protected java.io.File |
colladaFile
File from which COLLADA content is read.
|
Constructor and Description |
---|
ColladaFile(java.io.File file)
Create a new instance from a file.
|
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
getInputStream()
Returns an
InputStream to the associated COLLADA document. |
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.File colladaFile
public ColladaFile(java.io.File file)
file
- COLLADA file from which to read content.public java.io.InputStream getInputStream() throws java.io.IOException
InputStream
to the associated COLLADA document.
Implementations of this interface do not close the stream; the user of the class must close the stream.
getInputStream
in interface ColladaDoc
java.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 ColladaDoc
path
- the path of the requested file.