private static InputStream transform(final InputStream origin,
        final URIResolver resolver) throws IOException {
        try {
            final TransformerFactory factory = TransformerFactory.newInstance();
            factory.setURIResolver(resolver);
            return RsXslt.transform(factory, origin);
        } catch (final TransformerException ex) {
            throw new IOException(ex);
        }
    }
private static InputStream transform ( final InputStream origin , final URIResolver resolver ) throws IOException { try { final TransformerFactory factory = TransformerFactory . newInstance ( ) ; factory . setURIResolver ( resolver ) ; return RsXslt . transform ( factory , origin ) ; } catch ( final TransformerException ex ) { throw new IOException ( ex ) ; } }
Build body.
@param origin Original body
@param resolver Resolver
@return Body
@throws IOException If fails