|
|||||||||||||||||||
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
Dom4JXMLReaderDriver.java | - | 0% | 0% | 0% |
|
1 |
package com.thoughtworks.xstream.xml.dom4j;
|
|
2 |
|
|
3 |
import com.thoughtworks.xstream.xml.CannotParseXMLException;
|
|
4 |
import com.thoughtworks.xstream.xml.XMLReader;
|
|
5 |
import com.thoughtworks.xstream.xml.XMLReaderDriver;
|
|
6 |
import org.dom4j.DocumentException;
|
|
7 |
import org.dom4j.DocumentHelper;
|
|
8 |
|
|
9 |
public class Dom4JXMLReaderDriver implements XMLReaderDriver { |
|
10 | 0 |
public XMLReader createReader(String xml) {
|
11 | 0 |
try {
|
12 | 0 |
return new Dom4JXMLReader(DocumentHelper.parseText(xml)); |
13 |
} catch (DocumentException e) {
|
|
14 | 0 |
throw new CannotParseXMLException(e); |
15 |
} |
|
16 |
} |
|
17 |
|
|
18 |
} |
|
19 |
|
|