Codota Logo
Serializer.serialize
Code IndexAdd Codota to your IDE (free)

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

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

  • Common ways to obtain Serializer
private void myMethod () {
Serializer s =
  • Codota IconNode node;ExecutionContext executionContext;new Serializer(node, executionContext)
  • Smart code suggestions by Codota
}
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

/**
 * 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

/**
 * 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);
  }
}
org.milyn.delivery.dom.serializeSerializerserialize

Javadoc

Serialise the document to the supplied output writer instance.

Adds the DOCTYPE decl if one defined in the Content Delivery Configuration.

If the node is a Document (or DocumentFragment) node the whole node is serialised. Otherwise, only the node child elements are serialised i.e. the node itself is skipped.

Popular methods of Serializer

  • <init>
    Public constructor.
  • getSerializationUnit
    Get the first matching serialisation unit for the supplied element.
  • recursiveDOMWrite
    Recursively write the DOM tree to the supplied writer.
  • 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
  • addToBackStack (FragmentTransaction)
  • getContentResolver (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • ObjectMapper (com.fasterxml.jackson.databind)
    This mapper (or, data binder, or codec) provides functionality for converting between Java objects (
  • PrintStream (java.io)
    A PrintStream adds functionality to another output stream, namely the ability to print representatio
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • JTextField (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now