質問編集履歴
4
指摘内容を反映
test
CHANGED
File without changes
|
test
CHANGED
@@ -24,7 +24,7 @@
|
|
24
24
|
|
25
25
|
###該当のソースコード
|
26
26
|
|
27
|
-
String xmlfile = "C:
|
27
|
+
String xmlfile = "C:/test/test.xml";
|
28
28
|
|
29
29
|
|
30
30
|
|
3
指摘内容を反映
test
CHANGED
File without changes
|
test
CHANGED
@@ -24,7 +24,7 @@
|
|
24
24
|
|
25
25
|
###該当のソースコード
|
26
26
|
|
27
|
-
String
|
27
|
+
String xmlfile = "C:\test\test.xml";
|
28
28
|
|
29
29
|
|
30
30
|
|
@@ -32,7 +32,7 @@
|
|
32
32
|
|
33
33
|
try {
|
34
34
|
|
35
|
-
reader = new InputStreamReader( new ClassPathResource(
|
35
|
+
reader = new InputStreamReader( new ClassPathResource( xmlfile ).getInputStream(), "UTF-8" );
|
36
36
|
|
37
37
|
// 以降の処理が実行されない
|
38
38
|
|
2
タグを追加
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|
1
コメントを追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -34,7 +34,11 @@
|
|
34
34
|
|
35
35
|
reader = new InputStreamReader( new ClassPathResource( File ).getInputStream(), "UTF-8" );
|
36
36
|
|
37
|
+
// 以降の処理が実行されない
|
38
|
+
|
37
39
|
} catch( IOException ex ){
|
40
|
+
|
41
|
+
// 例外をキャッチしている
|
38
42
|
|
39
43
|
} finaly {
|
40
44
|
|