public class ObjReader extends Object
WritableObj.| Modifier and Type | Method and Description |
|---|---|
static Obj |
read(InputStream inputStream)
Read the OBJ data from the given stream and return it as an
Obj. |
static <T extends WritableObj> |
read(InputStream inputStream,
T output)
Read the OBJ data from the given stream and store the read
elements in the given
WritableObj. |
static Obj |
read(Reader reader)
Read the OBJ data from the given reader and return it as an
Obj. |
static <T extends WritableObj> |
read(Reader reader,
T output)
Read the OBJ data from the given reader and store the read
elements in the given
WritableObj. |
public static Obj read(InputStream inputStream) throws IOException
Obj.
The caller is responsible for closing the given stream.inputStream - The stream to read fromObjIOException - If an IO error occurspublic static <T extends WritableObj> T read(InputStream inputStream, T output) throws IOException
WritableObj.
The caller is responsible for closing the given stream.T - The output typeinputStream - The stream to read fromoutput - The WritableObj to store the read dataIOException - If an IO error occurspublic static Obj read(Reader reader) throws IOException
Obj.
The caller is responsible for closing the given reader.reader - The reader to read fromObjIOException - If an IO error occurspublic static <T extends WritableObj> T read(Reader reader, T output) throws IOException
WritableObj.
The caller is responsible for closing the given reader.T - The output typereader - The reader to read fromoutput - The WritableObj to store the read dataIOException - If an IO error occursCopyright © 2015. All rights reserved.