public class ColladaFile extends Object implements ColladaDoc
| Modifier and Type | Field and Description |
|---|---|
protected File |
colladaFile
File from which COLLADA content is read.
|
| Constructor and Description |
|---|
ColladaFile(File file)
Create a new instance from a file.
|
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getInputStream()
Returns an
InputStream to the associated COLLADA document. |
String |
getSupportFilePath(String path)
Returns an absolute path or URL to a file indicated by a path relative to the COLLADA file's location.
|
protected File colladaFile
public ColladaFile(File file)
file - COLLADA file from which to read content.public InputStream getInputStream() throws 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 ColladaDocIOException - if an error occurs while attempting to create or open the input stream.public String getSupportFilePath(String path)
getSupportFilePath in interface ColladaDocpath - the path of the requested file.