NASA World Wind

gov.nasa.worldwind.ogc.collada.io
Interface ColladaDoc

All Known Implementing Classes:
ColladaFile, ColladaInputStream

public interface ColladaDoc

Represents the source of a COLLADA document, and provides access to the document's content.


Method Summary
 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.
 

Method Detail

getInputStream

InputStream getInputStream()
                           throws IOException
Returns an InputStream to the associated COLLADA document.

Implementations of this interface do not close the stream; the user of the class must close the stream.

Returns:
an input stream positioned to the head of the COLLADA document.
Throws:
IOException - if an error occurs while attempting to create or open the input stream.

getSupportFilePath

String getSupportFilePath(String path)
                          throws IOException
Returns an absolute path or URL to a file indicated by a path relative to the COLLADA file's location.

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.
Throws:
IllegalArgumentException - if the specified path is null.
IOException - if an error occurs while attempting to read the support file.

NASA World Wind