作業部屋の使い方を試しています。
(empty log message)
| @@ -79,10 +79,28 @@ | ||
| 79 | 79 | } |
| 80 | 80 | |
| 81 | 81 | /** |
| 82 | - * 保存 | |
| 82 | + * 保存. | |
| 83 | 83 | * @param file |
| 84 | 84 | */ |
| 85 | 85 | 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) { | |
| 86 | 104 | |
| 87 | 105 | try { |
| 88 | 106 | //空のファイルを作成 |
| @@ -116,10 +134,10 @@ | ||
| 116 | 134 | } |
| 117 | 135 | |
| 118 | 136 | /** |
| 119 | - * 読込 | |
| 137 | + * 読込(CSV形式). | |
| 120 | 138 | * @param file |
| 121 | 139 | */ |
| 122 | - public void load(File file) { | |
| 140 | + public void loadCsv(File file) { | |
| 123 | 141 | slist = new ArrayList(); |
| 124 | 142 | |
| 125 | 143 | try { |
| @@ -152,7 +170,11 @@ | ||
| 152 | 170 | |
| 153 | 171 | } |
| 154 | 172 | |
| 155 | - public void xmlSave(File file) { | |
| 173 | + /** | |
| 174 | + * 保存(XML形式). | |
| 175 | + * @param file | |
| 176 | + */ | |
| 177 | + public void saveXml(File file) { | |
| 156 | 178 | try { |
| 157 | 179 | DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); |
| 158 | 180 | DocumentBuilder builder = factory.newDocumentBuilder(); |
| @@ -212,7 +234,11 @@ | ||
| 212 | 234 | } |
| 213 | 235 | } |
| 214 | 236 | |
| 215 | - public void xmlLoad(File file) { | |
| 237 | + /** | |
| 238 | + * 読込(XML形式). | |
| 239 | + * @param file | |
| 240 | + */ | |
| 241 | + public void loadXml(File file) { | |
| 216 | 242 | slist = new ArrayList(); |
| 217 | 243 | |
| 218 | 244 | try { |
| @@ -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 |
| @@ -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 |