@Service public class JaxbFileReader extends AbstractJaxbReader
Modifier and Type | Field and Description |
---|---|
protected java.io.File |
input |
jaxbContext, jaxbUnmarshaller
Constructor and Description |
---|
JaxbFileReader() |
Modifier and Type | Method and Description |
---|---|
javax.xml.bind.JAXBElement<org.xml_cml.schema.Cml> |
read(java.lang.String input,
java.lang.Object jaxbObject)
jaxb reader to read in an instance from a file.
|
protected javax.xml.bind.JAXBElement<org.xml_cml.schema.Cml> |
unmarshal(java.lang.Object jaxbObject) |
init
public javax.xml.bind.JAXBElement<org.xml_cml.schema.Cml> read(java.lang.String input, java.lang.Object jaxbObject)
read
in interface FilesReader<java.lang.Object,java.lang.String>
read
in class AbstractJaxbReader
input
- - the file namejaxbObject
- - the instance will be read from the fileprotected javax.xml.bind.JAXBElement<org.xml_cml.schema.Cml> unmarshal(java.lang.Object jaxbObject) throws javax.xml.bind.JAXBException
unmarshal
in class AbstractJaxbReader
javax.xml.bind.JAXBException