igeo.io
Class IObjFileImporter
java.lang.Object
igeo.io.IObjFileImporter
public class IObjFileImporter
- extends java.lang.Object
Wavefront OBJ file importer class.
- Author:
- Satoru Sugihara
Method Summary |
static java.util.ArrayList<IObjFileImporter.Entity> |
init(IServerI server,
java.util.ArrayList<IObject> objectContainer)
|
static java.util.ArrayList<IObject> |
read(java.io.File file,
IServerI server)
Reading an OBJ file and creating objects in a server. |
static java.util.ArrayList<IObject> |
read(java.io.InputStream stream,
IServerI server)
Reading an OBJ file and creating objects in a server. |
static java.util.ArrayList<IObject> |
read(java.io.Reader filereader,
IServerI server)
Reading an OBJ file and creating objects in a server. |
static java.lang.String |
readwoBS(java.io.BufferedReader reader)
|
static java.lang.String |
skipUntil(java.io.BufferedReader reader,
java.lang.String line,
java.lang.String start)
|
static java.lang.String |
skipUntilOr(java.io.BufferedReader reader,
java.lang.String line,
java.lang.String start1,
java.lang.String start2)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ignoreLayers
public static final boolean ignoreLayers
- See Also:
- Constant Field Values
IObjFileImporter
public IObjFileImporter()
readwoBS
public static java.lang.String readwoBS(java.io.BufferedReader reader)
throws java.io.IOException
- Throws:
java.io.IOException
skipUntil
public static java.lang.String skipUntil(java.io.BufferedReader reader,
java.lang.String line,
java.lang.String start)
throws java.io.IOException
- Throws:
java.io.IOException
skipUntilOr
public static java.lang.String skipUntilOr(java.io.BufferedReader reader,
java.lang.String line,
java.lang.String start1,
java.lang.String start2)
throws java.io.IOException
- Throws:
java.io.IOException
init
public static java.util.ArrayList<IObjFileImporter.Entity> init(IServerI server,
java.util.ArrayList<IObject> objectContainer)
read
public static java.util.ArrayList<IObject> read(java.io.File file,
IServerI server)
- Reading an OBJ file and creating objects in a server.
The main entry of the importer class.
- Parameters:
file
- An importing file object.server
- A server interface to put imported objects in.
- Returns:
- ArrayList of created IObject.
read
public static java.util.ArrayList<IObject> read(java.io.InputStream stream,
IServerI server)
- Reading an OBJ file and creating objects in a server.
The main entry of the importer class.
- Parameters:
stream
- An input stream.server
- A server interface to put imported objects in.
- Returns:
- ArrayList of created IObject.
read
public static java.util.ArrayList<IObject> read(java.io.Reader filereader,
IServerI server)
- Reading an OBJ file and creating objects in a server.
- Parameters:
filereader
- Reader object of an importing file.server
- A server interface to put imported objects in.
- Returns:
- ArrayList of created IObject.