• R/O
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

作業部屋の使い方を試しています。


Commit MetaInfo

Revision72 (tree)
Time2014-08-11 15:33:14
Authortuna_p

Log Message

(empty log message)

Change Summary

Incremental Difference

--- trunk/HtmlTest2/src/Form/SearchDataRW.java (revision 71)
+++ trunk/HtmlTest2/src/Form/SearchDataRW.java (revision 72)
@@ -79,10 +79,28 @@
7979 }
8080
8181 /**
82- * 保存
82+ * 保存.
8383 * @param file
8484 */
8585 public void save(File file) {
86+ //saveCsv(file);
87+ saveXml(file);
88+ }
89+
90+ /**
91+ * 読込.
92+ * @param file
93+ */
94+ public void load(File file) {
95+ //loadCsv(file);
96+ loadXml(file);
97+ }
98+
99+ /**
100+ * 保存(CSV形式).
101+ * @param file
102+ */
103+ public void saveCsv(File file) {
86104
87105 try {
88106 //空のファイルを作成
@@ -116,10 +134,10 @@
116134 }
117135
118136 /**
119- * 読込
137+ * 読込(CSV形式).
120138 * @param file
121139 */
122- public void load(File file) {
140+ public void loadCsv(File file) {
123141 slist = new ArrayList();
124142
125143 try {
@@ -152,7 +170,11 @@
152170
153171 }
154172
155- public void xmlSave(File file) {
173+ /**
174+ * 保存(XML形式).
175+ * @param file
176+ */
177+ public void saveXml(File file) {
156178 try {
157179 DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
158180 DocumentBuilder builder = factory.newDocumentBuilder();
@@ -212,7 +234,11 @@
212234 }
213235 }
214236
215- public void xmlLoad(File file) {
237+ /**
238+ * 読込(XML形式).
239+ * @param file
240+ */
241+ public void loadXml(File file) {
216242 slist = new ArrayList();
217243
218244 try {
--- trunk/HtmlTest2/data/Yahoo!天気.xml (nonexistent)
+++ trunk/HtmlTest2/data/Yahoo!天気.xml (revision 72)
@@ -0,0 +1 @@
1+<?xml version="1.0" encoding="UTF-8" standalone="no"?><searchdata><url>http://weather.yahoo.co.jp/weather/</url><searchlist><item>天気01</item><htmltag>li</htmltag><htmlid/><htmlclass>point pt1400</htmlclass><around/><regexp/></searchlist><searchlist><item>天気02</item><htmltag>li</htmltag><htmlid/><htmlclass>point pt1900</htmlclass><around/><regexp/></searchlist><searchlist><item>天気03</item><htmltag>li</htmltag><htmlid/><htmlclass>point pt3410</htmlclass><around/><regexp/></searchlist><searchlist><item>天気04</item><htmltag>li</htmltag><htmlid/><htmlclass>point pt4410</htmlclass><around/><regexp/></searchlist><searchlist><item>天気05</item><htmltag>li</htmltag><htmlid/><htmlclass>point pt5110</htmlclass><around/><regexp/></searchlist><searchlist><item>天気06</item><htmltag>li</htmltag><htmlid/><htmlclass>point pt5410</htmlclass><around/><regexp/></searchlist><searchlist><item>天気07</item><htmltag>li</htmltag><htmlid/><htmlclass>point pt5610</htmlclass><around/><regexp/></searchlist><searchlist><item>天気08</item><htmltag>li</htmltag><htmlid/><htmlclass>point pt6200</htmlclass><around/><regexp/></searchlist><searchlist><item>天気09</item><htmltag>li</htmltag><htmlid/><htmlclass>point pt6710</htmlclass><around/><regexp/></searchlist><searchlist><item>天気10</item><htmltag>li</htmltag><htmlid/><htmlclass>point pt7410</htmlclass><around/><regexp/></searchlist><searchlist><item>天気11</item><htmltag>li</htmltag><htmlid/><htmlclass>point pt8210</htmlclass><around/><regexp/></searchlist><searchlist><item>天気12</item><htmltag>li</htmltag><htmlid/><htmlclass>point pt8810</htmlclass><around/><regexp/></searchlist><searchlist><item>天気13</item><htmltag>li</htmltag><htmlid/><htmlclass>point pt9110</htmlclass><around/><regexp/></searchlist></searchdata>
\ No newline at end of file
--- trunk/HtmlTest2/data/Yahoo!ファイナンス.xml (nonexistent)
+++ trunk/HtmlTest2/data/Yahoo!ファイナンス.xml (revision 72)
@@ -0,0 +1 @@
1+<?xml version="1.0" encoding="UTF-8" standalone="no"?><searchdata><url>http://stocks.finance.yahoo.co.jp/stocks/detail/?code=9984.T</url><searchlist><item>銘柄コード</item><htmltag>dl</htmltag><htmlid/><htmlclass>stocksInfo clearFix</htmlclass><around/><regexp>(^\d{4})</regexp></searchlist><searchlist><item>カテゴリ</item><htmltag>div</htmltag><htmlid/><htmlclass>stockMainTabParts stockMainTabPartsCurrent</htmlclass><around/><regexp/></searchlist><searchlist><item>業種</item><htmltag>dd</htmltag><htmlid/><htmlclass>category yjSb</htmlclass><around/><regexp/></searchlist><searchlist><item>取得時間</item><htmltag>dd</htmltag><htmlid/><htmlclass>yjSb real</htmlclass><around/><regexp>^(.*)\t</regexp></searchlist><searchlist><item>銘柄名</item><htmltag>th</htmltag><htmlid/><htmlclass>symbol</htmlclass><around/><regexp/></searchlist><searchlist><item>株価</item><htmltag>td</htmltag><htmlid/><htmlclass>stoksPrice</htmlclass><around/><regexp/></searchlist><searchlist><item>前日比</item><htmltag>td</htmltag><htmlid/><htmlclass>change</htmlclass><around/><regexp>\t(.*)(.*%)</regexp></searchlist><searchlist><item>前日比%</item><htmltag>td</htmltag><htmlid/><htmlclass>change</htmlclass><around/><regexp>\t.*((.*)%)</regexp></searchlist><searchlist><item>前日終値</item><htmltag>div</htmltag><htmlid/><htmlclass>lineFi clearfix</htmlclass><around>0</around><regexp>^([,0-9]+)\t</regexp></searchlist><searchlist><item>始値</item><htmltag>div</htmltag><htmlid/><htmlclass>lineFi clearfix</htmlclass><around>1</around><regexp>^([,0-9]+|-{3})\t</regexp></searchlist><searchlist><item>高値</item><htmltag>div</htmltag><htmlid/><htmlclass>lineFi clearfix</htmlclass><around>2</around><regexp>^([,0-9]+|-{3})\t</regexp></searchlist><searchlist><item>安値</item><htmltag>div</htmltag><htmlid/><htmlclass>lineFi clearfix</htmlclass><around>3</around><regexp>^([,0-9]+|-{3})\t</regexp></searchlist><searchlist><item>出来高</item><htmltag>div</htmltag><htmlid/><htmlclass>lineFi clearfix</htmlclass><around>4</around><regexp>^(.*?)\t</regexp></searchlist><searchlist><item>売買代金</item><htmltag>div</htmltag><htmlid/><htmlclass>lineFi clearfix</htmlclass><around>5</around><regexp>^(.*?)\t</regexp></searchlist><searchlist><item>値幅制限</item><htmltag>div</htmltag><htmlid/><htmlclass>lineFi clearfix</htmlclass><around>6</around><regexp>^(.*?)\t</regexp></searchlist><searchlist><item>時価総額</item><htmltag>div</htmltag><htmlid/><htmlclass>lineFi yjMS clearfix</htmlclass><around>0</around><regexp>^(.*?)\t</regexp></searchlist><searchlist><item>発行済株式数</item><htmltag>div</htmltag><htmlid/><htmlclass>lineFi yjMS clearfix</htmlclass><around>1</around><regexp>^(.*?)\t</regexp></searchlist><searchlist><item>配当利回り</item><htmltag>div</htmltag><htmlid/><htmlclass>lineFi yjMS clearfix</htmlclass><around>2</around><regexp>^(.*?)\t</regexp></searchlist><searchlist><item>1株配当</item><htmltag>div</htmltag><htmlid/><htmlclass>lineFi yjMS clearfix</htmlclass><around>3</around><regexp>^(.*?)\t</regexp></searchlist><searchlist><item>PER</item><htmltag>div</htmltag><htmlid/><htmlclass>lineFi yjMS clearfix</htmlclass><around>4</around><regexp>^(.*?)\t</regexp></searchlist><searchlist><item>PBR</item><htmltag>div</htmltag><htmlid/><htmlclass>lineFi yjMS clearfix</htmlclass><around>5</around><regexp>^(.*?)\t</regexp></searchlist><searchlist><item>EPS</item><htmltag>div</htmltag><htmlid/><htmlclass>lineFi yjMS clearfix</htmlclass><around>6</around><regexp>^(.*?)\t</regexp></searchlist><searchlist><item>BPS</item><htmltag>div</htmltag><htmlid/><htmlclass>lineFi yjMS clearfix</htmlclass><around>7</around><regexp>^(.*?)\t</regexp></searchlist><searchlist><item>最低購入代金</item><htmltag>div</htmltag><htmlid/><htmlclass>lineFi yjMS clearfix</htmlclass><around>8</around><regexp>^(.*?)\t</regexp></searchlist><searchlist><item>単元株数</item><htmltag>div</htmltag><htmlid/><htmlclass>lineFi yjMS clearfix</htmlclass><around>9</around><regexp>^(.*?)\t</regexp></searchlist><searchlist><item>年初来高値</item><htmltag>div</htmltag><htmlid/><htmlclass>lineFi yjMS clearfix</htmlclass><around>10</around><regexp>^(.*?)\t</regexp></searchlist><searchlist><item>年初来安値</item><htmltag>div</htmltag><htmlid/><htmlclass>lineFi yjMS clearfix</htmlclass><around>11</around><regexp>^(.*?)\t</regexp></searchlist><searchlist><item>信用買残</item><htmltag>div</htmltag><htmlid/><htmlclass>lineFi yjMS clearfix</htmlclass><around>12</around><regexp>^(.*?)\t</regexp></searchlist><searchlist><item>信用買残前週比</item><htmltag>div</htmltag><htmlid/><htmlclass>lineFi yjMS clearfix</htmlclass><around>13</around><regexp>^(.*?)\t</regexp></searchlist><searchlist><item>信用売残</item><htmltag>div</htmltag><htmlid/><htmlclass>lineFi yjMS clearfix</htmlclass><around>14</around><regexp>^(.*?)\t</regexp></searchlist><searchlist><item>信用売残前週比</item><htmltag>div</htmltag><htmlid/><htmlclass>lineFi yjMS clearfix</htmlclass><around>15</around><regexp>^(.*?)\t</regexp></searchlist><searchlist><item>貸借倍率</item><htmltag>div</htmltag><htmlid/><htmlclass>yjMS clearfix</htmlclass><around/><regexp>^(.*?)\t</regexp></searchlist></searchdata>
\ No newline at end of file