Code example for SAXSource

0
 
	public EagleType convert(InputStream resourceAsStream) {
		try { 
			final Unmarshaller unmarshaller = getUnmarshaller();
			final InputSource input = new InputSource(resourceAsStream);
			final Source source = new SAXSource(createXmlReader(), input);
 
			return (EagleType) unmarshaller.unmarshal(source);
		} catch (JAXBException e) {
			//LOGGER.error("Error", e); 
			e.printStackTrace();
		} catch (SAXException e) {
			e.printStackTrace();
		} 
 
		return null; 
	} 
} 
Contextual code suggestions in your IDE  Get Codota for Java