Tabnine Logo
DOMParser.parse
Code IndexAdd Tabnine to your IDE (free)

How to use
parse
method
in
org.milyn.delivery.dom.DOMParser

Best Java code snippets using org.milyn.delivery.dom.DOMParser.parse (Showing top 12 results out of 315)

origin: smooks/smooks

/**
 * Document parser.
 * @param source Source content stream to be parsed.
 * @return W3C ownerDocument.
 * @throws SAXException Unable to parse the content.
 * @throws IOException Unable to read the input stream.
 */
public Document parse(Source source) throws IOException, SAXException {
    DOMBuilder contentHandler = new DOMBuilder(getExecContext());
    parse(source, contentHandler);
  return contentHandler.getDocument();
}
origin: org.milyn/milyn-smooks-all

/**
 * Document parser.
 * @param source Source content stream to be parsed.
 * @return W3C ownerDocument.
 * @throws SAXException Unable to parse the content.
 * @throws IOException Unable to read the input stream.
 */
public Document parse(Source source) throws IOException, SAXException {
    DOMBuilder contentHandler = new DOMBuilder(getExecContext());
    parse(source, contentHandler);
  return contentHandler.getDocument();
}
origin: org.milyn/milyn-smooks-core

/**
 * Document parser.
 * @param source Source content stream to be parsed.
 * @return W3C ownerDocument.
 * @throws SAXException Unable to parse the content.
 * @throws IOException Unable to read the input stream.
 */
public Document parse(Source source) throws IOException, SAXException {
    DOMBuilder contentHandler = new DOMBuilder(getExecContext());
    parse(source, contentHandler);
  return contentHandler.getDocument();
}
origin: org.virtuslab/milyn-smooks-core

/**
 * Document parser.
 * @param source Source content stream to be parsed.
 * @return W3C ownerDocument.
 * @throws SAXException Unable to parse the content.
 * @throws IOException Unable to read the input stream.
 */
public Document parse(Source source) throws IOException, SAXException {
    DOMBuilder contentHandler = new DOMBuilder(getExecContext());
    parse(source, contentHandler);
  return contentHandler.getDocument();
}
origin: org.milyn/milyn-smooks-all

/**
 * Append the content, behind the supplied input stream, to suplied
 * document element.
 * <p/>
 * Used to merge document fragments into a document.
 * @param source Source content stream to be parsed.
 * @param appendElement DOM element to which the content fragment is to
 * be added.
 * @throws SAXException Unable to parse the content.
 * @throws IOException Unable to read the input stream.
 */
public void append(Source source, Element appendElement) throws IOException, SAXException {
    DOMBuilder contentHandler = new DOMBuilder(getExecContext());
  contentHandler.setAppendElement(appendElement);
    parse(source, contentHandler);
}
origin: smooks/smooks

/**
 * Append the content, behind the supplied input stream, to suplied
 * document element.
 * <p/>
 * Used to merge document fragments into a document.
 * @param source Source content stream to be parsed.
 * @param appendElement DOM element to which the content fragment is to
 * be added.
 * @throws SAXException Unable to parse the content.
 * @throws IOException Unable to read the input stream.
 */
public void append(Source source, Element appendElement) throws IOException, SAXException {
    DOMBuilder contentHandler = new DOMBuilder(getExecContext());
  contentHandler.setAppendElement(appendElement);
    parse(source, contentHandler);
}
origin: org.milyn/milyn-smooks-core

/**
 * Append the content, behind the supplied input stream, to suplied
 * document element.
 * <p/>
 * Used to merge document fragments into a document.
 * @param source Source content stream to be parsed.
 * @param appendElement DOM element to which the content fragment is to
 * be added.
 * @throws SAXException Unable to parse the content.
 * @throws IOException Unable to read the input stream.
 */
public void append(Source source, Element appendElement) throws IOException, SAXException {
    DOMBuilder contentHandler = new DOMBuilder(getExecContext());
  contentHandler.setAppendElement(appendElement);
    parse(source, contentHandler);
}
origin: org.virtuslab/milyn-smooks-core

/**
 * Append the content, behind the supplied input stream, to suplied
 * document element.
 *
 * Used to merge document fragments into a document.
 * @param source Source content stream to be parsed.
 * @param appendElement DOM element to which the content fragment is to
 * be added.
 * @throws SAXException Unable to parse the content.
 * @throws IOException Unable to read the input stream.
 */
public void append(Source source, Element appendElement) throws IOException, SAXException {
    DOMBuilder contentHandler = new DOMBuilder(getExecContext());
  contentHandler.setAppendElement(appendElement);
    parse(source, contentHandler);
}
origin: org.virtuslab/milyn-smooks-core

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

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

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

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

Javadoc

Document parser.

Popular methods of DOMParser

  • <init>
    Public constructor.
  • attachNamespaceDeclarationStack
  • attachXMLReader
  • configureReader
  • createInputSource
  • createXMLReader
  • detachXMLReader
  • getExecContext
  • getXMLReader

Popular in Java

  • Finding current android device location
  • putExtra (Intent)
  • setContentView (Activity)
  • onCreateOptionsMenu (Activity)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • JTextField (javax.swing)
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • From CI to AI: The AI layer in your organization
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