import java.io.IOException;
import java.net.URL;
import java.util.Scanner;

public class converter
{
    public static final String DIRECTOR = "Director:";
    public static final String STARRING = "Starring:";
    public static final String MEDIA = "Media:";

    public static void main (String args[]) throws IOException
    {
	String fileName = "FF74D200-9E9B-4A7C-8A58-70CEAA7FF488.html";

	URL url = new URL("file://"+System.getProperty("user.dir")+"/"+fileName);
	Scanner sc = new Scanner(url.openStream());
	StringBuffer sb = new StringBuffer();

	while (sc.hasNext())
	{
	    sb.append(sc.next());
	}

	String result = sb.toString();

	// Removing the HTML tags

	result = result.replaceAll("<[^>]*>", "");
	//	System.out.println("Contents of the web page: "+result);

	String stars = "";
	String media = "";

	int directorStart = result.indexOf(converter.DIRECTOR);
	String movie = result.substring(0, directorStart);

	int starsStart = result.indexOf(converter.STARRING);
	String director = result.substring(directorStart+converter.DIRECTOR.length(), starsStart);

	System.out.println("Movie: "+movie);
	System.out.println("Director: "+director);
    }
}
@@ -239,22 +239,130 @@
 ing 
-MEDIA = %22Media
+RATING = %22Rating:%22;%0A    public static final String MEDIA = %22Media:%22;%0A    public static final String LANGUAGES = %22Languages
 :%22;%0A
@@ -883,49 +883,8 @@
 );%0A%0A
-%09String stars = %22%22;%0A%09String media = %22%22;%0A%0A
 %09int
@@ -1136,16 +1136,214 @@
 tart);%0A%0A
+%09int mediaStart = result.indexOf(converter.MEDIA);%0A%09int languagesStart = result.indexOf(converter.LANGUAGES);%0A%09String media = result.substring(mediaStart+converter.MEDIA.length(), languagesStart);%0A%0A
 %09System.
@@ -1416,15 +1416,53 @@
 ector);%0A
+%09System.out.println(%22Media: %22+media);%0A
     %7D%0A%7D

Update converter.java