Tabnine Logo
Serializer.<init>
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using org.milyn.delivery.dom.serialize.Serializer.<init> (Showing top 4 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

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

Javadoc

Public constructor.

Popular methods of Serializer

  • 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
  • notifyDataSetChanged (ArrayAdapter)
  • onCreateOptionsMenu (Activity)
  • putExtra (Intent)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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