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

How to use
SAXParser
in
org.milyn.delivery.sax

Best Java code snippets using org.milyn.delivery.sax.SAXParser (Showing top 12 results out of 315)

origin: org.milyn/milyn-smooks-core

  public void cleanup() {
    parser.cleanup();
  }
}
origin: org.milyn/milyn-smooks-all

protected Writer parse(Source source, Result result, ExecutionContext executionContext) throws SAXException, IOException {
  Writer writer = getWriter(result, executionContext);
  ContentDeliveryConfig deliveryConfig = executionContext.getDeliveryConfig();
  XMLReader saxReader = getXMLReader(executionContext);
  saxHandler = new SAXHandler(getExecContext(), writer);
      saxReader = createXMLReader();
    NamespaceMappings.setNamespaceDeclarationStack(namespaceDeclarationStack, executionContext);
    attachNamespaceDeclarationStack(saxReader, executionContext);
    attachXMLReader(saxReader, executionContext);
    configureReader(saxReader, saxHandler, executionContext, source);
    if(executionContext != null) {
      if(saxReader instanceof HierarchyChangeReader) {
        ((HierarchyChangeReader)saxReader).setHierarchyChangeListener(new XMLReaderHierarchyChangeListener(executionContext));
      saxReader.parse(createInputSource(source, executionContext.getContentEncoding()));
    } else {
      saxReader.parse(createInputSource(source, Charset.defaultCharset().name()));
        if(saxReader != null) {
          try {
            detachXMLReader(executionContext);
          } finally {
            deliveryConfig.returnXMLReader(saxReader);
origin: org.milyn/milyn-smooks-all

public SmooksSAXFilter(ExecutionContext executionContext) {
  this.executionContext = executionContext;
  closeSource = ParameterAccessor.getBoolParameter(Filter.CLOSE_SOURCE, true, executionContext.getDeliveryConfig());
  closeResult = ParameterAccessor.getBoolParameter(Filter.CLOSE_RESULT, true, executionContext.getDeliveryConfig());
  parser = new SAXParser(executionContext);
}
origin: smooks/smooks

protected Writer parse(Source source, Result result, ExecutionContext executionContext) throws SAXException, IOException {
  Writer writer = getWriter(result, executionContext);
  ContentDeliveryConfig deliveryConfig = executionContext.getDeliveryConfig();
  XMLReader saxReader = getXMLReader(executionContext);
  saxHandler = new SAXHandler(getExecContext(), writer);
      saxReader = createXMLReader();
    NamespaceMappings.setNamespaceDeclarationStack(namespaceDeclarationStack, executionContext);
    attachNamespaceDeclarationStack(saxReader, executionContext);
    attachXMLReader(saxReader, executionContext);
    configureReader(saxReader, saxHandler, executionContext, source);
    if(executionContext != null) {
      if(saxReader instanceof HierarchyChangeReader) {
        ((HierarchyChangeReader)saxReader).setHierarchyChangeListener(new XMLReaderHierarchyChangeListener(executionContext));
      saxReader.parse(createInputSource(source, executionContext.getContentEncoding()));
    } else {
      saxReader.parse(createInputSource(source, Charset.defaultCharset().name()));
        if(saxReader != null) {
          try {
            detachXMLReader(executionContext);
          } finally {
            deliveryConfig.returnXMLReader(saxReader);
origin: org.virtuslab/milyn-smooks-core

public SmooksSAXFilter(ExecutionContext executionContext) {
  this.executionContext = executionContext;
  closeSource = ParameterAccessor.getBoolParameter(Filter.CLOSE_SOURCE, true, executionContext.getDeliveryConfig());
  closeResult = ParameterAccessor.getBoolParameter(Filter.CLOSE_RESULT, true, executionContext.getDeliveryConfig());
  parser = new SAXParser(executionContext);
}
origin: org.virtuslab/milyn-smooks-core

protected Writer parse(Source source, Result result, ExecutionContext executionContext) throws SAXException, IOException {
  Writer writer = getWriter(result, executionContext);
  ContentDeliveryConfig deliveryConfig = executionContext.getDeliveryConfig();
  XMLReader saxReader = getXMLReader(executionContext);
  saxHandler = new SAXHandler(getExecContext(), writer);
      saxReader = createXMLReader();
    NamespaceMappings.setNamespaceDeclarationStack(namespaceDeclarationStack, executionContext);
    attachNamespaceDeclarationStack(saxReader, executionContext);
    attachXMLReader(saxReader, executionContext);
    configureReader(saxReader, saxHandler, executionContext, source);
    if(executionContext != null) {
      if(saxReader instanceof HierarchyChangeReader) {
        ((HierarchyChangeReader)saxReader).setHierarchyChangeListener(new XMLReaderHierarchyChangeListener(executionContext));
      saxReader.parse(createInputSource(source, executionContext.getContentEncoding()));
    } else {
      saxReader.parse(createInputSource(source, Charset.defaultCharset().name()));
        if(saxReader != null) {
          try {
            detachXMLReader(executionContext);
          } finally {
            deliveryConfig.returnXMLReader(saxReader);
origin: smooks/smooks

public SmooksSAXFilter(ExecutionContext executionContext) {
  this.executionContext = executionContext;
  closeSource = ParameterAccessor.getBoolParameter(Filter.CLOSE_SOURCE, true, executionContext.getDeliveryConfig());
  closeResult = ParameterAccessor.getBoolParameter(Filter.CLOSE_RESULT, true, executionContext.getDeliveryConfig());
  parser = new SAXParser(executionContext);
}
origin: org.virtuslab/milyn-smooks-core

  public void cleanup() {
    parser.cleanup();
  }
}
origin: org.milyn/milyn-smooks-core

protected Writer parse(Source source, Result result, ExecutionContext executionContext) throws SAXException, IOException {
  Writer writer = getWriter(result, executionContext);
  ContentDeliveryConfig deliveryConfig = executionContext.getDeliveryConfig();
  XMLReader saxReader = getXMLReader(executionContext);
  saxHandler = new SAXHandler(getExecContext(), writer);
      saxReader = createXMLReader();
    NamespaceMappings.setNamespaceDeclarationStack(namespaceDeclarationStack, executionContext);
    attachNamespaceDeclarationStack(saxReader, executionContext);
    attachXMLReader(saxReader, executionContext);
    configureReader(saxReader, saxHandler, executionContext, source);
    if(executionContext != null) {
      if(saxReader instanceof HierarchyChangeReader) {
        ((HierarchyChangeReader)saxReader).setHierarchyChangeListener(new XMLReaderHierarchyChangeListener(executionContext));
      saxReader.parse(createInputSource(source, executionContext.getContentEncoding()));
    } else {
      saxReader.parse(createInputSource(source, Charset.defaultCharset().name()));
        if(saxReader != null) {
          try {
            detachXMLReader(executionContext);
          } finally {
            deliveryConfig.returnXMLReader(saxReader);
origin: org.milyn/milyn-smooks-core

public SmooksSAXFilter(ExecutionContext executionContext) {
  this.executionContext = executionContext;
  closeSource = ParameterAccessor.getBoolParameter(Filter.CLOSE_SOURCE, true, executionContext.getDeliveryConfig());
  closeResult = ParameterAccessor.getBoolParameter(Filter.CLOSE_RESULT, true, executionContext.getDeliveryConfig());
  parser = new SAXParser(executionContext);
}
origin: smooks/smooks

  public void cleanup() {
    parser.cleanup();
  }
}
origin: org.milyn/milyn-smooks-all

  public void cleanup() {
    parser.cleanup();
  }
}
org.milyn.delivery.saxSAXParser

Javadoc

Smooks SAX data stream parser.

Most used methods

  • <init>
  • attachNamespaceDeclarationStack
  • attachXMLReader
  • cleanup
  • configureReader
  • createInputSource
  • createXMLReader
  • detachXMLReader
  • getExecContext
  • getWriter
  • getXMLReader
  • parse
  • getXMLReader,
  • parse

Popular in Java

  • Start an intent from android
  • setScale (BigDecimal)
  • getResourceAsStream (ClassLoader)
  • addToBackStack (FragmentTransaction)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • JTextField (javax.swing)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Top 12 Jupyter Notebook Extensions
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