Mercurial > hg > Members > nobuyasu > tightVNCProxy
comparison src/myVncProxy/CreateHtmlFile.java @ 35:5c158080cb3f
update CreateHtmlFile
author | e085711 |
---|---|
date | Wed, 27 Apr 2011 06:41:03 +0900 |
parents | 8d8e63b3bd83 |
children | 7fa7dfeb88d1 |
comparison
equal
deleted
inserted
replaced
34:8d8e63b3bd83 | 35:5c158080cb3f |
---|---|
38 file = new File(html_file); | 38 file = new File(html_file); |
39 PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter(file))); | 39 PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter(file))); |
40 | 40 |
41 InetAddress addr = InetAddress.getLocalHost(); | 41 InetAddress addr = InetAddress.getLocalHost(); |
42 | 42 |
43 String contents = "<APPLET CODE=\"VncViwer.class\" ARCHIVE=\"VncViewer.jar\"\n " + | 43 String contents = "<APPLET CODE=\"VncViewer.class\" ARCHIVE=\"VncViewer.jar\"\n " + |
44 "WIDTH=\""+width+"\" HEIGHT=\""+height+"\">\n"; | 44 "WIDTH=\""+width+"\" HEIGHT=\""+height+"\">\n"; |
45 contents = contents+"<PARAM NAME=\"PORT\" VALUE=\""+port+"\">\n"; | 45 contents = contents+"<PARAM NAME=\"PORT\" VALUE=\""+port+"\">\n"; |
46 contents = contents+"<PARAM NAME=\"HOST\" VALUE=\""+addr.getHostAddress()+"\">\n"; | 46 contents = contents+"<PARAM NAME=\"HOST\" VALUE=\""+addr.getHostAddress()+"\">\n"; |
47 | 47 |
48 pw.println(header+contents+footer); | 48 pw.println(header+contents+footer); |