de.javagl.utils.obj.impl
Class DefaultObjReader
java.lang.Object
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
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 |
DefaultObjReader
public DefaultObjReader()
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 fromoutput
- The target to store the read data
- Throws:
IOException
- If an IO error occurs