if (outputDest == null) {
//???
xqeval.setDestination(serializer);
} else if (outputDest instanceof OutputStream) {
ch = new HtmlSerializer((OutputStream) outputDest);
xqeval.setDestination(new SAXDestination(ch));
} else if (outputDest instanceof Writer) {
ch = new HtmlSerializer((Writer) outputDest);
xqeval.setDestination(new SAXDestination(ch));
} else if (outputDest instanceof File) {
try {
FileOutputStream fos = new FileOutputStream((File) outputDest);
ch = new HtmlSerializer(fos);
xqeval.setDestination(new SAXDestination(ch));
} catch (FileNotFoundException fnfe) {
xqeval.setDestination(serializer);
}
} else {
//???