public void parse(String fileName) {
		parserFactory = new ObjLineParserFactory(this);


		InputStream fileInput = ResourceLoader.getResourceAsStream(fileName);
		if (fileInput == null) {
			// Could not find the file in the jar.
			try {
				File file = new File(fileName);
				if (file.exists()) fileInput = new FileInputStream(file);
			} catch (Exception e2) {
				e2.printStackTrace();
			}
		}


		BufferedReader in = null;

		try {
			in = new BufferedReader(new InputStreamReader(fileInput));

			String currentLine = null;
			while ((currentLine = in.readLine()) != null)
				parseLine(currentLine);

			in.close();

		} catch (Exception e) {
			Log.e("Error reading file " + fileName, e);
			throw new RuntimeException(e);
		}


//
//		Log.finest("Loaded OBJ from file " + fileName);
//		Log.finest(getVertices().size() + " vertices.");
//		Log.finest(getNormals().size() + " normals.");
//		Log.finest(getTextures().size() + " textures coordinates.");
//		Log.finest(getFaces().size() + " faces.");
	}