File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
xml/src/main/java/org/springframework/xml/sax Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2005-2010 the original author or authors.
2
+ * Copyright 2002-2012 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
22
22
23
23
import org .springframework .core .io .Resource ;
24
24
25
+ import org .apache .commons .logging .Log ;
26
+ import org .apache .commons .logging .LogFactory ;
25
27
import org .xml .sax .InputSource ;
26
28
27
29
/**
32
34
*/
33
35
public abstract class SaxUtils {
34
36
37
+ private static final Log logger = LogFactory .getLog (SaxUtils .class );
38
+
35
39
/**
36
40
* Creates a SAX <code>InputSource</code> from the given resource. Sets the system identifier to the resource's
37
41
* <code>URL</code>, if available.
@@ -53,10 +57,12 @@ public static String getSystemId(Resource resource) {
53
57
try {
54
58
return new URI (resource .getURL ().toExternalForm ()).toString ();
55
59
}
56
- catch (IOException e ) {
60
+ catch (IOException ex ) {
61
+ logger .debug ("Could not get System ID from [" + resource + "], ex" );
57
62
return null ;
58
63
}
59
64
catch (URISyntaxException e ) {
65
+ logger .debug ("Could not get System ID from [" + resource + "], ex" );
60
66
return null ;
61
67
}
62
68
}
You can’t perform that action at this time.
0 commit comments