Lines 155-168
Link Here
|
155 |
*/ |
155 |
*/ |
156 |
public Document deserialize() throws ConvertException, IOException { |
156 |
public Document deserialize() throws ConvertException, IOException { |
157 |
log("\nFound the XSLT deserializer"); |
157 |
log("\nFound the XSLT deserializer"); |
158 |
Enumeration enum = cd.getDocumentEnumeration(); |
158 |
Enumeration enumerate = cd.getDocumentEnumeration(); |
159 |
org.w3c.dom.Document domDoc=null; |
159 |
org.w3c.dom.Document domDoc=null; |
160 |
DOMDocument docOut=null; |
160 |
DOMDocument docOut=null; |
161 |
GenericOfficeDocument doc = null; |
161 |
GenericOfficeDocument doc = null; |
162 |
ByteArrayOutputStream baos =null; |
162 |
ByteArrayOutputStream baos =null; |
163 |
GenericOfficeDocument sxwDoc = new GenericOfficeDocument("output"); |
163 |
GenericOfficeDocument sxwDoc = new GenericOfficeDocument("output"); |
164 |
while (enum.hasMoreElements()) { |
164 |
while (enumerate.hasMoreElements()) { |
165 |
docOut = (DOMDocument) enum.nextElement(); |
165 |
docOut = (DOMDocument) enumerate.nextElement(); |
166 |
} |
166 |
} |
167 |
domDoc = docOut.getContentDOM(); |
167 |
domDoc = docOut.getContentDOM(); |
168 |
try{ |
168 |
try{ |