de.javagl.utils.obj.impl
Class DefaultObjReader

java.lang.Object
  extended by de.javagl.utils.obj.impl.DefaultObjReader
All Implemented Interfaces:
ObjReader

public class DefaultObjReader
extends Object
implements ObjReader

Default implementation of an ObjReader, that reads the data from an OBJ file which may be stored in an ObjTarget


Constructor Summary
DefaultObjReader()
           
 
Method Summary
 void read(InputStream inputStream, ObjTarget output)
          Read the OBJ data from the given stream and store the read elements in the given ObjTarget
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultObjReader

public DefaultObjReader()
Method Detail

read

public void read(InputStream inputStream,
                 ObjTarget output)
          throws IOException
Description copied from interface: ObjReader
Read the OBJ data from the given stream and store the read elements in the given ObjTarget

Specified by:
read in interface ObjReader
Parameters:
inputStream - The stream to read from
output - The target to store the read data
Throws:
IOException - If an IO error occurs