Class ColladaFile
- java.lang.Object
- 
- gov.nasa.worldwind.ogc.collada.io.ColladaFile
 
- 
- All Implemented Interfaces:
- ColladaDoc
 
 public class ColladaFile extends java.lang.Object implements ColladaDoc Represents a COLLADA document read from a file.
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.io.FilecolladaFileFile from which COLLADA content is read.
 - 
Constructor SummaryConstructors Constructor Description ColladaFile(java.io.File file)Create a new instance from a file.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.InputStreamgetInputStream()Returns anInputStreamto the associated COLLADA document.java.lang.StringgetSupportFilePath(java.lang.String path)Returns an absolute path or URL to a file indicated by a path relative to the COLLADA file's location.
 
- 
- 
- 
Method Detail- 
getInputStreampublic java.io.InputStream getInputStream() throws java.io.IOExceptionReturns anInputStreamto the associated COLLADA document.Implementations of this interface do not close the stream; the user of the class must close the stream. - Specified by:
- getInputStreamin interface- ColladaDoc
- Returns:
- an input stream positioned to the head of the COLLADA document.
- Throws:
- java.io.IOException- if an error occurs while attempting to create or open the input stream.
 
 - 
getSupportFilePathpublic 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.- Specified by:
- getSupportFilePathin interface- ColladaDoc
- Parameters:
- path- the path of the requested file.
- Returns:
- an absolute path or URL to the file, or null if the file does not exist.
 
 
- 
 
-