xOutStream = (XOutputStream) UnoRuntime.queryInterface(
XOutputStream.class , xPipeObj );
convert (xis,xOutStream,false,udJarPath,sFileName,offMime,sdMime);
Object xSaxParserObj=xMSF.createInstance("com.sun.star.xml.sax.Parser");
XParser xParser = (XParser) UnoRuntime.queryInterface(
XParser.class , xSaxParserObj );
if (xParser==null){
System.out.println("\nParser creation Failed");
}
xOutStream.closeOutput();
InputSource aInput = new InputSource();
if (sFileName==null){
sFileName="";
}
aInput.sSystemId = sFileName;
aInput.aInputStream =xInStream;
xParser.setDocumentHandler ( xDocHandler );
xParser.parseStream ( aInput );
xOutStream.closeOutput();
xInStream.closeInput();
}
catch (IOException e){