import java.io.*; public class Test_PrintTranscriptHTML { public static void main(String[] args) { try { TranscriptReciever r = new TranscriptReciever(); BufferedReader stdIn = new BufferedReader( new InputStreamReader(System.in)); System.out.println("What is your UserId?"); String userId = stdIn.readLine(); System.out.println("What is your password?"); String password = stdIn.readLine(); InputStream in = r.getTranscriptStream(userId, password); BufferedReader buffIn = new BufferedReader( new InputStreamReader(in)); FileWriter out = new FileWriter("transcript.html"); String str; String nl = "\r\n"; while((str=buffIn.readLine()) != null) {out.write(str); out.write(nl);} out.close(); } catch(Exception e) {e.printStackTrace();} } }