| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
package org.kuali.rice.ken.util; |
| 17 |
|
|
| 18 |
|
import java.io.ByteArrayInputStream; |
| 19 |
|
import java.io.File; |
| 20 |
|
|
| 21 |
|
import javax.xml.transform.stream.StreamSource; |
| 22 |
|
|
| 23 |
|
import org.apache.log4j.Logger; |
| 24 |
|
|
| 25 |
|
|
| 26 |
|
|
| 27 |
|
@author |
| 28 |
|
|
|
|
|
| 0% |
Uncovered Elements: 9 (9) |
Complexity: 3 |
Complexity Density: 0.5 |
|
| 29 |
|
public class XslSourceResolver { |
| 30 |
|
protected final Logger LOG = Logger.getLogger(getClass()); |
| 31 |
|
|
| 32 |
|
|
| 33 |
|
|
| 34 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 35 |
0
|
public XslSourceResolver() {... |
| 36 |
0
|
super(); |
| 37 |
|
|
| 38 |
|
} |
| 39 |
|
|
| 40 |
|
|
| 41 |
|
|
| 42 |
|
|
| 43 |
|
@param |
| 44 |
|
@return |
| 45 |
|
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
| 46 |
0
|
public StreamSource resolveXslFromFile(String path) {... |
| 47 |
0
|
StreamSource xslsource = new StreamSource(new File(path)); |
| 48 |
0
|
return xslsource; |
| 49 |
|
} |
| 50 |
|
|
| 51 |
|
|
| 52 |
|
|
| 53 |
|
|
| 54 |
|
@param |
| 55 |
|
@return |
| 56 |
|
|
|
|
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
| 57 |
0
|
public StreamSource resolveXslFromString(String s) {... |
| 58 |
0
|
ByteArrayInputStream bytestream = new ByteArrayInputStream(s.getBytes()); |
| 59 |
0
|
StreamSource xslsource = new StreamSource(bytestream); |
| 60 |
0
|
return xslsource; |
| 61 |
|
} |
| 62 |
|
} |