锘??xml version="1.0" encoding="utf-8" standalone="yes"?>97精品中文字幕,欧美一级在线亚洲天堂,久久一区二区三区国产精品http://www.aygfsteel.com/edwinwang/category/18521.htmlzh-cnTue, 27 Feb 2007 11:56:30 GMTTue, 27 Feb 2007 11:56:30 GMT60- 絎竴涓狪TEXT鐨勭▼搴?/title>http://www.aygfsteel.com/EdwinWang/archive/2006/12/27/90322.htmlEdwinWangEdwinWangWed, 27 Dec 2006 08:24:00 GMThttp://www.aygfsteel.com/EdwinWang/archive/2006/12/27/90322.htmlhttp://www.aygfsteel.com/EdwinWang/comments/90322.htmlhttp://www.aygfsteel.com/EdwinWang/archive/2006/12/27/90322.html#Feedback0http://www.aygfsteel.com/EdwinWang/comments/commentRss/90322.htmlhttp://www.aygfsteel.com/EdwinWang/services/trackbacks/90322.html絎竴涓狪TEXT鐨勭▼搴?br />
//Step聽(tīng)1:聽(tīng)define聽(tīng)document
Rectangle聽(tīng)rectPageSize聽(tīng)=聽(tīng)new聽(tīng)Rectangle(PageSize.A4);
Document聽(tīng)document聽(tīng)=聽(tīng)new聽(tīng)Document(rectPageSize,50,50,40,40);

Paragraph聽(tīng)paragraph1聽(tīng)=聽(tīng)new聽(tīng)Paragraph("Welcome聽(tīng)to聽(tīng)I(yíng)Text");
paragraph1.setAlignment(Paragraph.ALIGN_CENTER);
PdfPTable聽(tīng)table聽(tīng)=聽(tīng)new聽(tīng)PdfPTable(2);
PdfPCell聽(tīng)cell聽(tīng)=聽(tīng)new聽(tīng)PdfPCell();
cell.addElement(paragraph1);
cell.setColspan(2);
table.addCell(cell);
cell聽(tīng)=聽(tīng)new聽(tīng)PdfPCell();
cell.addElement(new聽(tīng)Paragraph("Test1"));
table.addCell(cell);
cell聽(tīng)=聽(tīng)new聽(tīng)PdfPCell();
cell.addElement(new聽(tīng)Paragraph("Test2"));
table.addCell(cell);

//Step聽(tīng)2:聽(tīng)define聽(tīng)output
PdfWriter.getInstance(document,new聽(tīng)FileOutputStream("test.pdf"));

//Step聽(tīng)3:聽(tīng)open聽(tīng)document
document.open();

//Step聽(tīng)4:聽(tīng)add聽(tīng)elements
document.add(table);

//Step聽(tīng)5:聽(tīng)close聽(tīng)document
document.close();
]]> - 璇曠敤Netbeans5.5http://www.aygfsteel.com/EdwinWang/archive/2006/12/21/89229.htmlEdwinWangEdwinWangThu, 21 Dec 2006 03:10:00 GMThttp://www.aygfsteel.com/EdwinWang/archive/2006/12/21/89229.htmlhttp://www.aygfsteel.com/EdwinWang/comments/89229.htmlhttp://www.aygfsteel.com/EdwinWang/archive/2006/12/21/89229.html#Feedback0http://www.aygfsteel.com/EdwinWang/comments/commentRss/89229.htmlhttp://www.aygfsteel.com/EdwinWang/services/trackbacks/89229.html璇曚簡(jiǎn)涓嬪湪Netbeans5.5涓嬪紑鍙慡wing,web,web service,JSF絳変竴浜涘姛鑳斤紝鎰熻榪樹(shù)笉閿欍傝櫧鐒朵竴浜涘浘褰㈠寲鐨勬嫋鎷夋晥鏋滃仛鐨勮繕?shù)笉灏藉錆h鎰忥紝浣嗗凡緇忓緢涓嶉敊浜?jiǎn)銆傛嵁璇磋繕鍙互鍙鍖栧紑鍙慚obile紼嬪簭錛屾敼澶╄璇曚竴涓嬨?br />铏界劧Netbeans鐨勭伒媧繪т笉濡俥clipse,浣嗘槸鍔熻兘榪樻槸寰堝己澶х殑錛屽煎緱浣跨敤銆備釜浜烘劅瑙塭clipse鏇撮傚悎鐜㊣DE鐨勪漢鑰屼笉鏄敤IDE鐨勪漢浣跨敤銆侸ust 涓漢鎰忚錛屽懙鍛碉綖锝?img src ="http://www.aygfsteel.com/EdwinWang/aggbug/89229.html" width = "1" height = "1" />
]]> - 濡備綍鍦↗AVA紼嬪簭涓皟鐢╳indows鍏朵粬紼嬪簭http://www.aygfsteel.com/EdwinWang/archive/2006/12/20/88991.htmlEdwinWangEdwinWangWed, 20 Dec 2006 02:49:00 GMThttp://www.aygfsteel.com/EdwinWang/archive/2006/12/20/88991.htmlhttp://www.aygfsteel.com/EdwinWang/comments/88991.htmlhttp://www.aygfsteel.com/EdwinWang/archive/2006/12/20/88991.html#Feedback0http://www.aygfsteel.com/EdwinWang/comments/commentRss/88991.htmlhttp://www.aygfsteel.com/EdwinWang/services/trackbacks/88991.html铏界劧JAVA鏄鉤鍙版棤鍏蟲(chóng)х殑錛屼絾鏄湪浼佷笟涓緢澶氭椂鍊欒繕鏄湪涓虹壒瀹氱殑緋葷粺鍦ㄥ紑鍙戯紝浼?xì)瑕佹眰璋冪敤涓浜涘綋鍓嶇郴緇熺殑鍏朵粬紼嬪簭鎴栧懡浠ゃ傛渶甯歌鐨勬槸鍦╓INDOWS涓傚叾瀹濲AVA鏄彲浠ラ氳繃Runtime鍘昏皟鐢ㄧ郴緇熶腑鐨勪竴浜涚▼搴忕殑錛屼笅闈㈡槸涓涓緥瀛愶細(xì)
try
{
聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)ps聽(tīng)
=
聽(tīng)Runtime.getRuntime().exec(
"
E:\\test.exe
"
);
聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)
//
ps聽(tīng)=聽(tīng)Runtime.getRuntime().exec("ipconfig");聽(tīng)聽(tīng)----聽(tīng)For聽(tīng)execute聽(tīng)windows聽(tīng)commands
聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)
//
ps聽(tīng)=聽(tīng)Runtime.getRuntime().exec("E:\\test.bat");聽(tīng)----聽(tīng)For聽(tīng)run聽(tīng)BAT聽(tīng)files
聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)BufferedReader聽(tīng)in聽(tīng)
=
聽(tīng)
new
聽(tīng)BufferedReader(
new
聽(tīng)聽(tīng)聽(tīng)I(yíng)nputStreamReader(ps.getInputStream()));
聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)String聽(tīng)inputLine;聽(tīng)

聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)
while
((inputLine聽(tīng)聽(tīng)聽(tīng)
=
聽(tīng)聽(tīng)聽(tīng)in.readLine())聽(tīng)聽(tīng)聽(tīng)
!=
聽(tīng)聽(tīng)聽(tīng)
null
)聽(tīng)
{聽(tīng)聽(tīng)
聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)result聽(tīng)聽(tīng)聽(tīng)
+=
聽(tīng)聽(tīng)聽(tīng)inputLine
+
"
\n
"
;
聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)}
聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)in.close();
聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)System.out.println(
"
Output:
"
聽(tīng)
+
聽(tīng)result);
聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)

聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)}
catch
(Exception聽(tīng)ex)
{
聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)System.out.println(
"
Error
"
聽(tīng)
+
聽(tīng)ex.getMessage());
聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)}
涓婇潰鐨勪唬鐮佺墖鏂腑鍚庨潰涓閮ㄥ垎鏄湪鍙栬繑鍥炵殑鍙傛暟錛屽鏋滀笉闇瑕佸彲浠ヤ笉鍙栥備笉鍙栫殑璇濆彲鑳戒篃灝變笉闇瑕佸彇寰楀埌Process浜?jiǎn)銆傜敤榪欎釜鏂規(guī)硶鍙互榪愯windows涓殑exe鎴栬卋at鏂囦歡銆?img src ="http://www.aygfsteel.com/EdwinWang/aggbug/88991.html" width = "1" height = "1" />
]]>- 鎵嬪姩SOAP Call WebServicehttp://www.aygfsteel.com/EdwinWang/archive/2006/12/19/88682.htmlEdwinWangEdwinWangTue, 19 Dec 2006 01:40:00 GMThttp://www.aygfsteel.com/EdwinWang/archive/2006/12/19/88682.htmlhttp://www.aygfsteel.com/EdwinWang/comments/88682.htmlhttp://www.aygfsteel.com/EdwinWang/archive/2006/12/19/88682.html#Feedback0http://www.aygfsteel.com/EdwinWang/comments/commentRss/88682.htmlhttp://www.aygfsteel.com/EdwinWang/services/trackbacks/88682.html鍓嶄笉涔呭叕鍙告帴浜?jiǎn)涓獘z伙紝瑕佹眰鍦≒nuts涓瑿all WebService錛屾湰鏉ユ槸涓浠跺緢瀹規(guī)槗鐨勪簨錛屽彲涓嶈兘娣誨姞絎笁鏂圭殑綾誨寘緇欐垜閫犳垚浜?jiǎn)楹荤儲(chǔ)銆備笉鑳戒嬌鐢ˋjax絳変竴浜涚涓夋柟鐨勫寘錛屾剰鍛崇潃鎴戝彧鑳借嚜宸卞幓瑙f瀽SOAP鍗忚錛岃屽湪PNuts涓櫧鐒跺彲浠ヨ皟JAVA鐨勬柟娉曪紝浣嗗嵈涓嶉傚悎鍐欏緢澶х殑鍔熻兘錛屾渶鍚庨噰鐢ㄤ簡(jiǎn)涓縐嶉潪甯稿偦鐨勫仛娉曪紝鎵嬪姩鍘繪嫾SOAP娑堟伅鐨勫唴瀹癸紝鍐欏湪榪欎綔涓哄涓浜涚壒孌婇渶姹傜殑涓縐嶅疄鐜版柟寮忥細(xì)
try
{
聽(tīng)聽(tīng)聽(tīng)聽(tīng)postStr聽(tīng)
=
聽(tīng)postStr聽(tīng)
+
聽(tīng)
"
<?xml聽(tīng)version='1.0'聽(tīng)encoding='utf-8'?>
"
;
聽(tīng)聽(tīng)聽(tīng)聽(tīng)postStr聽(tīng)
=
聽(tīng)postStr聽(tīng)
+
聽(tīng)
"
<soap:Envelope聽(tīng)xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
"
;
聽(tīng)聽(tīng)聽(tīng)聽(tīng)postStr聽(tīng)
=
聽(tīng)postStr聽(tīng)
+
聽(tīng)
"
聽(tīng)xmlns:xsd='http://www.w3.org/2001/XMLSchema'
"
;
聽(tīng)聽(tīng)聽(tīng)聽(tīng)postStr聽(tīng)
=
聽(tīng)postStr聽(tīng)
+
聽(tīng)
"
聽(tīng)xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'>
"
;
聽(tīng)聽(tīng)聽(tīng)聽(tīng)postStr聽(tīng)
=
聽(tīng)postStr聽(tīng)
+
聽(tīng)
"
<soap:Body>
"
;
聽(tīng)聽(tīng)聽(tīng)聽(tīng)postStr聽(tīng)
=
聽(tīng)postStr聽(tīng)
+
聽(tīng)
"
<exchangeData聽(tīng)xmlns='https://www.riverbed.com/mfg/DataExchange/'>
"
;
聽(tīng)聽(tīng)聽(tīng)聽(tīng)postStr聽(tīng)
=
聽(tīng)postStr聽(tīng)
+
聽(tīng)
"
<sender>Test</sender>
"
;
聽(tīng)聽(tīng)聽(tīng)聽(tīng)postStr聽(tīng)
=
聽(tīng)postStr聽(tīng)
+
聽(tīng)
"
<password>35b82957-c792-81ce-38e4-7c83ad3291ea</password>
"
;
聽(tīng)聽(tīng)聽(tīng)聽(tīng)postStr聽(tīng)
=
聽(tīng)postStr聽(tīng)
+
聽(tīng)
"
<transactionType>Test_Get_Data</transactionType>
"
;
聽(tīng)聽(tīng)聽(tīng)聽(tīng)postStr聽(tīng)
=
聽(tīng)postStr聽(tīng)
+
聽(tīng)
"
<data>
"
;
聽(tīng)聽(tīng)聽(tīng)聽(tīng)postStr聽(tīng)
=
聽(tīng)postStr聽(tīng)
+
聽(tīng)htmlEncode(data);
聽(tīng)聽(tīng)聽(tīng)聽(tīng)postStr聽(tīng)
=
聽(tīng)postStr聽(tīng)
+
聽(tīng)
"
</data>
"
;
聽(tīng)聽(tīng)聽(tīng)聽(tīng)postStr聽(tīng)
=
聽(tīng)postStr聽(tīng)
+
聽(tīng)
"
</exchangeData>
"
;
聽(tīng)聽(tīng)聽(tīng)聽(tīng)postStr聽(tīng)
=
聽(tīng)postStr聽(tīng)
+
聽(tīng)
"
</soap:Body>
"
;
聽(tīng)聽(tīng)聽(tīng)聽(tīng)postStr聽(tīng)
=
聽(tīng)postStr聽(tīng)
+
聽(tīng)
"
</soap:Envelope>
"
;

聽(tīng)聽(tīng)聽(tīng)聽(tīng)URL聽(tīng)url聽(tīng)
=
聽(tīng)
new
聽(tīng)URL(
"
https://www.test.com/testdata.php
"
);
聽(tīng)聽(tīng)聽(tīng)聽(tīng)HttpURLConnection聽(tīng)conn聽(tīng)
=
聽(tīng)(HttpURLConnection)url.openConnection();
聽(tīng)聽(tīng)聽(tīng)聽(tīng)conn.setDoOutput(
true
);
聽(tīng)聽(tīng)聽(tīng)聽(tīng)conn.setRequestMethod(
"
POST
"
);
聽(tīng)聽(tīng)聽(tīng)聽(tīng)conn.setRequestProperty(
"
Content-Type
"
,
"
text/xml
"
);
聽(tīng)聽(tīng)聽(tīng)聽(tīng)conn.setRequestProperty(
"
Content-Length
"
,聽(tīng)String.valueOf(postStr.length()));
聽(tīng)聽(tīng)聽(tīng)聽(tīng)conn.setDoOutput(
true
);
聽(tīng)聽(tīng)聽(tīng)聽(tīng)conn.setDoInput(
true
);
聽(tīng)聽(tīng)聽(tīng)聽(tīng)conn.connect();
聽(tīng)聽(tīng)聽(tīng)聽(tīng)PrintWriter聽(tīng)out聽(tīng)
=
聽(tīng)
new
聽(tīng)PrintWriter(conn.getOutputStream());聽(tīng)聽(tīng)
聽(tīng)聽(tīng)聽(tīng)聽(tīng)out.print(postStr);
聽(tīng)聽(tīng)聽(tīng)聽(tīng)out.flush();
聽(tīng)聽(tīng)聽(tīng)聽(tīng)out.close();
聽(tīng)聽(tīng)聽(tīng)聽(tīng)BufferedReader聽(tīng)in聽(tīng)
=
聽(tīng)
new
聽(tīng)BufferedReader(
new
聽(tīng)聽(tīng)聽(tīng)I(yíng)nputStreamReader(conn.getInputStream()));
聽(tīng)聽(tīng)聽(tīng)聽(tīng)String聽(tīng)inputLine;

聽(tīng)聽(tīng)聽(tīng)聽(tīng)
while
((inputLine聽(tīng)聽(tīng)聽(tīng)
=
聽(tīng)聽(tīng)聽(tīng)in.readLine())聽(tīng)聽(tīng)聽(tīng)
!=
聽(tīng)聽(tīng)聽(tīng)
null
)聽(tīng)
{
聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)result聽(tīng)聽(tīng)聽(tīng)
+=
聽(tīng)聽(tīng)聽(tīng)inputLine
+
"
\n
"
;聽(tīng)聽(tīng)
聽(tīng)聽(tīng)聽(tīng)聽(tīng)}
聽(tīng)聽(tīng)聽(tīng)聽(tīng)in.close();
聽(tīng)聽(tīng)聽(tīng)聽(tīng)System.out.println(htmlDecode(result));

}
catch
(Exception聽(tīng)ex)
{
聽(tīng)聽(tīng)聽(tīng)聽(tīng)System.out.println(
"
Error:
"
聽(tīng)
+
聽(tīng)ex.getMessage());
}

]]>
主站蜘蛛池模板:
合阳县|
昆山市|
临沧市|
海安县|
泰和县|
图木舒克市|
南漳县|
南皮县|
塔河县|
开封县|
志丹县|
青河县|
黑山县|
集贤县|
萝北县|
兖州市|
宝鸡市|
轮台县|
崇左市|
嘉黎县|
常宁市|
开封县|
霍山县|
睢宁县|
呼图壁县|
左贡县|
湖北省|
滨州市|
曲麻莱县|
康定县|
曲沃县|
娄底市|
张家川|
浦县|
文化|
安平县|
呼伦贝尔市|
毕节市|
银川市|
宜兰县|
宁国市|