diff options
Diffstat (limited to 'src/main/java/at/gv/egiz')
-rw-r--r-- | src/main/java/at/gv/egiz/moazs/scheme/Marshaller.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/at/gv/egiz/moazs/scheme/Marshaller.java b/src/main/java/at/gv/egiz/moazs/scheme/Marshaller.java index 2dbb6a0..3c82419 100644 --- a/src/main/java/at/gv/egiz/moazs/scheme/Marshaller.java +++ b/src/main/java/at/gv/egiz/moazs/scheme/Marshaller.java @@ -14,20 +14,20 @@ import java.io.StringWriter; */ public class Marshaller { - private final Jaxb2Marshaller marshaller; + private final Jaxb2Marshaller jaxbMarshaller; public Marshaller(Jaxb2Marshaller marshaller) { - this.marshaller = marshaller; + this.jaxbMarshaller = marshaller; } public <T> String marshallXml(final T obj) { StringWriter sw = new StringWriter(); Result result = new StreamResult(sw); - marshaller.marshal(obj, result); + jaxbMarshaller.marshal(obj, result); return sw.toString(); } public <T> T unmarshallXml(final InputStream xml) { - return (T) marshaller.unmarshal(new StreamSource(xml)); + return (T) jaxbMarshaller.unmarshal(new StreamSource(xml)); } } |