Changeset 1203 for trunk/docx4j/src/main/java/org/docx4j/openpackaging/parts/WordprocessingML/StyleDefinitionsPart.java
- Timestamp:
- 09/06/10 11:40:42 (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/docx4j/src/main/java/org/docx4j/openpackaging/parts/WordprocessingML/StyleDefinitionsPart.java
r1096 r1203 73 73 74 74 75 /**76 * Unmarshal XML data from the specified InputStream and return the77 * resulting content tree. Validation event location information may78 * be incomplete when using this form of the unmarshal API.79 *80 * <p>81 * Implements <a href="#unmarshalGlobal">Unmarshal Global Root Element</a>.82 *83 * @param is the InputStream to unmarshal XML data from84 * @return the newly created root object of the java content tree85 *86 * @throws JAXBException87 * If any unexpected errors occur while unmarshalling88 */89 @Override90 public Styles unmarshal( java.io.InputStream is ) throws JAXBException {91 92 try {93 94 // if (jc==null) {95 // setJAXBContext(Context.jc);96 // }97 98 Unmarshaller u = jc.createUnmarshaller();99 100 //u.setSchema(org.docx4j.jaxb.WmlSchema.schema);101 u.setEventHandler(new org.docx4j.jaxb.JaxbValidationEventHandler());102 103 log.info("unmarshalling " + this.getClass().getName() + " \n\n" );104 105 jaxbElement = (Styles) u.unmarshal( is );106 107 log.info("\n\n" + this.getClass().getName() + " unmarshalled \n\n" );108 109 } catch (Exception e ) {110 e.printStackTrace();111 }112 113 return jaxbElement;114 115 }116 75 117 76 @Override
Note: See TracChangeset
for help on using the changeset viewer.
