Changeset 1199 for trunk/docx4j/src/pptx4j/java/org/docx4j/openpackaging/parts/PresentationML/JaxbPmlPart.java
- Timestamp:
- 09/06/10 05:36:48 (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/docx4j/src/pptx4j/java/org/docx4j/openpackaging/parts/PresentationML/JaxbPmlPart.java
r1096 r1199 113 113 } 114 114 115 public E unmarshal( java.io.InputStream is ) throws JAXBException {116 117 try {118 setJAXBContext(Context.jcPML);119 120 Unmarshaller u = jc.createUnmarshaller();121 u.setEventHandler(new org.docx4j.jaxb.JaxbValidationEventHandler());122 123 jaxbElement = (E)u.unmarshal( is );124 log.debug( this.getClass().getName() + " unmarshalled" );125 126 } catch (JAXBException e ) {127 log.error(e);128 throw e;129 }130 return jaxbElement;131 }115 // public E unmarshal( java.io.InputStream is ) throws JAXBException { 116 // 117 // try { 118 // setJAXBContext(Context.jcPML); 119 // 120 // Unmarshaller u = jc.createUnmarshaller(); 121 // u.setEventHandler(new org.docx4j.jaxb.JaxbValidationEventHandler()); 122 // 123 // jaxbElement = (E)u.unmarshal( is ); 124 // log.debug( this.getClass().getName() + " unmarshalled" ); 125 // 126 // } catch (JAXBException e ) { 127 // log.error(e); 128 // throw e; 129 // } 130 // return jaxbElement; 131 // } 132 132 133 133
Note: See TracChangeset
for help on using the changeset viewer.
