de.javagl.utils.obj.impl
Class DefaultMtlReader

java.lang.Object
  extended by 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.


Constructor Summary
DefaultMtlReader()
           
 
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
 

Constructor Detail

DefaultMtlReader

public DefaultMtlReader()
Method Detail

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