/** * 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); } }
public Node filter(Source source) throws SmooksException { Node deliveryNode; if (source == null) { throw new IllegalArgumentException("null 'source' arg passed in method call."); } try { DOMParser parser = new DOMParser(executionContext); Document document = parser.parse(source); deliveryNode = filter(document); } catch (Exception cause) { throw new SmooksException("Unable to filter InputStream for target profile [" + executionContext.getTargetProfiles().getBaseProfile() + "].", cause); } return deliveryNode; }
logger.debug("Starting assembly phase [" + executionContext.getTargetProfiles().getBaseProfile() + "]"); logger.debug("No assembly units configured for device [" + executionContext.getTargetProfiles().getBaseProfile() + "]"); logger.debug("Starting processing phase [" + executionContext.getTargetProfiles().getBaseProfile() + "]");
/** * Phase the supplied input reader. * <p/> * Simply parses the input reader into a W3C DOM and calls {@link #filter(Document)}. * * @param source The source of markup to be filtered. * @return Node representing filtered document. */ public Node filter(Source source) { Node deliveryNode; if (source == null) { throw new IllegalArgumentException("null 'source' arg passed in method call."); } try { DOMParser parser = new DOMParser(executionContext); Document document = parser.parse(source); deliveryNode = filter(document); } catch (Exception cause) { throw new SmooksException("Unable to filter InputStream for target profile [" + executionContext.getTargetProfiles().getBaseProfile() + "].", cause); } return deliveryNode; }
/** * Phase the supplied input reader. * <p/> * Simply parses the input reader into a W3C DOM and calls {@link #filter(Document)}. * * @param source The source of markup to be filtered. * @return Node representing filtered document. */ public Node filter(Source source) { Node deliveryNode; if (source == null) { throw new IllegalArgumentException("null 'source' arg passed in method call."); } try { DOMParser parser = new DOMParser(executionContext); Document document = parser.parse(source); deliveryNode = filter(document); } catch (Exception cause) { throw new SmooksException("Unable to filter InputStream for target profile [" + executionContext.getTargetProfiles().getBaseProfile() + "].", cause); } return deliveryNode; }
/** * Phase the supplied input reader. * <p/> * Simply parses the input reader into a W3C DOM and calls {@link #filter(Document)}. * * @param source The source of markup to be filtered. * @return Node representing filtered document. */ public Node filter(Source source) { Node deliveryNode; if (source == null) { throw new IllegalArgumentException("null 'source' arg passed in method call."); } try { DOMParser parser = new DOMParser(executionContext); Document document = parser.parse(source); deliveryNode = filter(document); } catch (Exception cause) { throw new SmooksException("Unable to filter InputStream for target profile [" + executionContext.getTargetProfiles().getBaseProfile() + "].", cause); } return deliveryNode; }
logger.debug("Starting assembly phase [" + executionContext.getTargetProfiles().getBaseProfile() + "]"); logger.debug("No assembly units configured for device [" + executionContext.getTargetProfiles().getBaseProfile() + "]"); logger.debug("Starting processing phase [" + executionContext.getTargetProfiles().getBaseProfile() + "]");
logger.debug("Starting assembly phase [" + executionContext.getTargetProfiles().getBaseProfile() + "]"); logger.debug("No assembly units configured for device [" + executionContext.getTargetProfiles().getBaseProfile() + "]"); logger.debug("Starting processing phase [" + executionContext.getTargetProfiles().getBaseProfile() + "]");
logger.debug("Starting assembly phase [" + executionContext.getTargetProfiles().getBaseProfile() + "]"); logger.debug("No assembly units configured for device [" + executionContext.getTargetProfiles().getBaseProfile() + "]"); logger.debug("Starting processing phase [" + executionContext.getTargetProfiles().getBaseProfile() + "]");