congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
Serializer
Code IndexAdd Tabnine to your IDE (free)

How to use
Serializer
in
org.milyn.delivery.dom.serialize

Best Java code snippets using org.milyn.delivery.dom.serialize.Serializer (Showing top 16 results out of 315)

origin: smooks/smooks

/**
 * 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);
  }
}
origin: org.milyn/milyn-smooks-core

  recursiveDOMWrite(rootElement, writer, true);
} else {
    Node childNode = deliveryNodes.item(i);
    if(childNode.getNodeType() == Node.ELEMENT_NODE) {
      recursiveDOMWrite((Element)childNode, writer, isRoot);
origin: org.virtuslab/milyn-smooks-core

/**
 * 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);
  }
}
origin: org.milyn/milyn-smooks-core

NodeList children = element.getChildNodes();
elementSU = getSerializationUnit(element, isRoot);
try {
  if(elementSU != null) {
              recursiveDOMWrite((Element)childNode, writer, false);
        recursiveDOMWrite((Element)childNode, writer, false);
origin: smooks/smooks

NodeList children = element.getChildNodes();
elementSU = getSerializationUnit(element, isRoot);
try {
  if(elementSU != null) {
              recursiveDOMWrite((Element)childNode, writer, false);
        recursiveDOMWrite((Element)childNode, writer, false);
origin: org.virtuslab/milyn-smooks-core

NodeList children = element.getChildNodes();
elementSU = getSerializationUnit(element, isRoot);
try {
  if(elementSU != null) {
              recursiveDOMWrite((Element)childNode, writer, false);
        recursiveDOMWrite((Element)childNode, writer, false);
origin: org.milyn/milyn-smooks-core

/**
 * 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);
  }
}
origin: smooks/smooks

  recursiveDOMWrite(rootElement, writer, true);
} else {
    Node childNode = deliveryNodes.item(i);
    if(childNode.getNodeType() == Node.ELEMENT_NODE) {
      recursiveDOMWrite((Element)childNode, writer, isRoot);
origin: org.milyn/milyn-smooks-all

NodeList children = element.getChildNodes();
elementSU = getSerializationUnit(element, isRoot);
try {
  if(elementSU != null) {
              recursiveDOMWrite((Element)childNode, writer, false);
        recursiveDOMWrite((Element)childNode, writer, false);
origin: org.milyn/milyn-smooks-all

/**
 * 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);
  }
}
origin: org.milyn/milyn-smooks-all

  recursiveDOMWrite(rootElement, writer, true);
} else {
    Node childNode = deliveryNodes.item(i);
    if(childNode.getNodeType() == Node.ELEMENT_NODE) {
      recursiveDOMWrite((Element)childNode, writer, isRoot);
origin: org.virtuslab/milyn-smooks-core

  recursiveDOMWrite(rootElement, writer, true);
} else {
    Node childNode = deliveryNodes.item(i);
    if(childNode.getNodeType() == Node.ELEMENT_NODE) {
      recursiveDOMWrite((Element)childNode, writer, isRoot);
origin: smooks/smooks

recursiveDOMWrite((Element)childNode, writer);
break;
origin: org.milyn/milyn-smooks-all

recursiveDOMWrite((Element)childNode, writer);
break;
origin: org.milyn/milyn-smooks-core

recursiveDOMWrite((Element)childNode, writer);
break;
origin: org.virtuslab/milyn-smooks-core

recursiveDOMWrite((Element)childNode, writer);
break;
org.milyn.delivery.dom.serializeSerializer

Javadoc

Node serializer.

This class uses the org.milyn.delivery.ContentDeliveryConfig and the org.milyn.delivery.dom.serialize.SerializationUnit instances defined there on to perform the serialization.

Most used methods

  • <init>
    Public constructor.
  • getSerializationUnit
    Get the first matching serialisation unit for the supplied element.
  • recursiveDOMWrite
    Recursively write the DOM tree to the supplied writer.
  • serialize
    Serialise the document to the supplied output writer instance. Adds the DOCTYPE decl if one defined
  • serailize
    Serialise the document to the supplied output writer instance. Adds the DOCTYPE decl if one defined

Popular in Java

  • Making http requests using okhttp
  • setContentView (Activity)
  • setScale (BigDecimal)
  • getContentResolver (Context)
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top 17 PhpStorm Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now