package gazz.trifolia.parser; import java.io.InputStream; import javax.xml.bind.JAXBContext; import javax.xml.bind.JAXBException; import javax.xml.bind.Unmarshaller; public class TrifMarshaller { public static TemplateExport loadTemplateExport(InputStream is) throws JAXBException { JAXBContext jc = JAXBContext.newInstance(TemplateExport.class); Unmarshaller u = jc.createUnmarshaller(); TemplateExport mimi = (TemplateExport) u.unmarshal(is); return mimi; } }