/** * Serialise the node to the supplied output writer instance. * <p/> * Executes the <a href="#phases">Serialisation phase</a>, * using the {@link Serializer} class to perform the serialization. * * @param node Document to be serialised. * @param writer Output writer. * @throws ResourceConfigurationNotFoundException * DOM Serialiser exception. * @throws IOException Unable to write to output writer. * @throws SmooksException Unable to serialise due to bad Smooks environment. Check cause. */ public void serialize(Node node, Writer writer) throws IOException, SmooksException { Serializer serializer; if (node == null) { throw new IllegalArgumentException("null 'doc' arg passed in method call."); } else if (writer == null) { throw new IllegalArgumentException("null 'writer' arg passed in method call."); } if (logger.isDebugEnabled()) { logger.debug("Starting serialization phase [" + executionContext.getTargetProfiles().getBaseProfile() + "]"); } serializer = new Serializer(node, executionContext); try { serializer.serialize(writer); } catch (ResourceConfigurationNotFoundException e) { throw new SmooksException("Unable to serialize document.", e); } }
/** * Serialise the node to the supplied output writer instance. * <p/> * Executes the <a href="#phases">Serialisation phase</a>, * using the {@link Serializer} class to perform the serialization. * * @param node Document to be serialised. * @param writer Output writer. * @throws ResourceConfigurationNotFoundException * DOM Serialiser exception. * @throws IOException Unable to write to output writer. * @throws SmooksException Unable to serialise due to bad Smooks environment. Check cause. */ public void serialize(Node node, Writer writer) throws IOException, SmooksException { Serializer serializer; if (node == null) { throw new IllegalArgumentException("null 'doc' arg passed in method call."); } else if (writer == null) { throw new IllegalArgumentException("null 'writer' arg passed in method call."); } if (logger.isDebugEnabled()) { logger.debug("Starting serialization phase [" + executionContext.getTargetProfiles().getBaseProfile() + "]"); } serializer = new Serializer(node, executionContext); try { serializer.serialize(writer); } catch (ResourceConfigurationNotFoundException e) { throw new SmooksException("Unable to serialize document.", e); } }
/** * Serialise the node to the supplied output writer instance. * <p/> * Executes the <a href="#phases">Serialisation phase</a>, * using the {@link Serializer} class to perform the serialization. * * @param node Document to be serialised. * @param writer Output writer. * @throws ResourceConfigurationNotFoundException * DOM Serialiser exception. * @throws IOException Unable to write to output writer. * @throws SmooksException Unable to serialise due to bad Smooks environment. Check cause. */ public void serialize(Node node, Writer writer) throws IOException, SmooksException { Serializer serializer; if (node == null) { throw new IllegalArgumentException("null 'doc' arg passed in method call."); } else if (writer == null) { throw new IllegalArgumentException("null 'writer' arg passed in method call."); } if (logger.isDebugEnabled()) { logger.debug("Starting serialization phase [" + executionContext.getTargetProfiles().getBaseProfile() + "]"); } serializer = new Serializer(node, executionContext); try { serializer.serialize(writer); } catch (ResourceConfigurationNotFoundException e) { throw new SmooksException("Unable to serialize document.", e); } }
/** * Serialise the node to the supplied output writer instance. * * Executes the <a href="#phases">Serialisation phase</a>, * using the {@link Serializer} class to perform the serialization. * * @param node Document to be serialised. * @param writer Output writer. * @throws ResourceConfigurationNotFoundException * DOM Serialiser exception. * @throws IOException Unable to write to output writer. * @throws SmooksException Unable to serialise due to bad Smooks environment. Check cause. */ public void serialize(Node node, Writer writer) throws IOException, SmooksException { Serializer serializer; if (node == null) { throw new IllegalArgumentException("null 'doc' arg passed in method call."); } else if (writer == null) { throw new IllegalArgumentException("null 'writer' arg passed in method call."); } if (logger.isDebugEnabled()) { logger.debug("Starting serialization phase [" + executionContext.getTargetProfiles().getBaseProfile() + "]"); } serializer = new Serializer(node, executionContext); try { serializer.serailize(writer); } catch (ResourceConfigurationNotFoundException e) { throw new SmooksException("Unable to serialize document.", e); } }