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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.io.InputStream
getInputStream()
Returns anInputStream
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.
-
-
-
Method Detail
-
getInputStream
java.io.InputStream getInputStream() throws java.io.IOException
Returns anInputStream
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:
java.io.IOException
- if an error occurs while attempting to create or open the input stream.
-
getSupportFilePath
java.lang.String getSupportFilePath(java.lang.String path) throws java.io.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:
java.lang.IllegalArgumentException
- if the specified path is null.java.io.IOException
- if an error occurs while attempting to read the support file.
-
-