作業部屋の使い方を試しています。
(empty log message)
| @@ -128,8 +128,8 @@ | ||
| 128 | 128 | } |
| 129 | 129 | bufferedwriter.close(); |
| 130 | 130 | |
| 131 | - } catch(IOException e) { | |
| 132 | - System.out.println(e); | |
| 131 | + } catch(IOException ex) { | |
| 132 | + Logger.getLogger(SearchDataRW.class.getName()).log(Level.SEVERE, null, ex); | |
| 133 | 133 | } |
| 134 | 134 | } |
| 135 | 135 |
| @@ -164,8 +164,8 @@ | ||
| 164 | 164 | } |
| 165 | 165 | bufferedreader.close(); |
| 166 | 166 | |
| 167 | - } catch(IOException e) { | |
| 168 | - System.out.println(e); | |
| 167 | + } catch(IOException ex) { | |
| 168 | + Logger.getLogger(SearchDataRW.class.getName()).log(Level.SEVERE, null, ex); | |
| 169 | 169 | } |
| 170 | 170 | |
| 171 | 171 | } |
| @@ -263,8 +263,8 @@ | ||
| 263 | 263 | Node child; |
| 264 | 264 | for (child = slistnode.getFirstChild(); child != null; child = child.getNextSibling()) { |
| 265 | 265 | if(child.getNodeType() == Node.ELEMENT_NODE) { |
| 266 | + | |
| 266 | 267 | String tag = child.getNodeName(); |
| 267 | - | |
| 268 | 268 | String rtn = ""; |
| 269 | 269 | if(child.getFirstChild() != null) { |
| 270 | 270 | rtn = child.getFirstChild().getNodeValue(); |
| @@ -271,22 +271,22 @@ | ||
| 271 | 271 | } |
| 272 | 272 | |
| 273 | 273 | switch (tag) { |
| 274 | - case "item": | |
| 274 | + case "item" : | |
| 275 | 275 | sdat.setitem(rtn); |
| 276 | 276 | break; |
| 277 | - case "htmltag": | |
| 277 | + case "htmltag" : | |
| 278 | 278 | sdat.setHtmltag(rtn); |
| 279 | 279 | break; |
| 280 | - case "htmlid": | |
| 280 | + case "htmlid" : | |
| 281 | 281 | sdat.setHtmlid(rtn); |
| 282 | 282 | break; |
| 283 | - case "htmlclass": | |
| 283 | + case "htmlclass" : | |
| 284 | 284 | sdat.setHtmlclass(rtn); |
| 285 | 285 | break; |
| 286 | - case "around": | |
| 286 | + case "around" : | |
| 287 | 287 | sdat.setaround(rtn); |
| 288 | 288 | break; |
| 289 | - case "regexp": | |
| 289 | + case "regexp" : | |
| 290 | 290 | sdat.setregexp(rtn); |
| 291 | 291 | break; |
| 292 | 292 | } |