de.javagl.utils.obj.impl
Class DefaultMtlReader
java.lang.Object
de.javagl.utils.obj.impl.DefaultMtlReader
- All Implemented Interfaces:
- MtlReader
public class DefaultMtlReader
- extends Object
- implements MtlReader
Default implementation of an MtlReader, that will read the parts
of an MTL file that can be represented in an Mtl.
Method Summary |
void |
read(InputStream inputStream,
List<Mtl> mtlList)
Read the MTL data from the given stream, and store the
read Mtl objects in the given list. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultMtlReader
public DefaultMtlReader()
read
public void read(InputStream inputStream,
List<Mtl> mtlList)
throws IOException
- Description copied from interface:
MtlReader
- Read the MTL data from the given stream, and store the
read Mtl objects in the given list.
- Specified by:
read
in interface MtlReader
- Parameters:
inputStream
- The stream to read from.mtlList
- The list of Mtl object.
- Throws:
IOException
- If an IO error occurs