Lines Matching refs:result
51 * @param result the Result that will receive output from the XmlSerializer
54 public static XmlSerializer createSerializer(Result result) {
55 if (result instanceof SAXResult)
56 return new SaxSerializer((SAXResult) result);
57 if (result instanceof DOMResult)
58 return new DomSerializer((DOMResult) result);
59 if (result instanceof StreamResult)
60 return new StreamSerializer((StreamResult) result);
61 if (result instanceof TXWResult)
62 return new TXWSerializer(((TXWResult)result).getWriter());
64 throw new UnsupportedOperationException("Unsupported Result type: " + result.getClass().getName());