Codota Logo
JavaXMLReader
Code IndexAdd Codota to your IDE (free)

How to use
JavaXMLReader
in
org.milyn.delivery.java

Best Java code snippets using org.milyn.delivery.java.JavaXMLReader (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: smooks/smooks

protected void configureReader(XMLReader reader, DefaultHandler2 handler, ExecutionContext execContext, Source source) throws SAXException {
  if (reader instanceof SmooksXMLReader) {
    ((SmooksXMLReader) reader).setExecutionContext(execContext);
  }
  if (reader instanceof JavaXMLReader) {
    if (!(source instanceof JavaSource)) {
      throw new SAXException("A " + JavaSource.class.getName() + " source must be supplied for " + JavaXMLReader.class.getName() + " implementations.");
    }
    ((JavaXMLReader) reader).setSourceObjects(((JavaSource) source).getSourceObjects());
  }
  reader.setContentHandler(handler);
  try {
    reader.setProperty("http://xml.org/sax/properties/lexical-handler", handler);
  } catch (SAXNotRecognizedException e) {
    logger.debug("XMLReader property 'http://xml.org/sax/properties/lexical-handler' not recognized by XMLReader '" + reader.getClass().getName() + "'.");
  }
}
origin: org.milyn/milyn-smooks-core

protected void configureReader(XMLReader reader, DefaultHandler2 handler, ExecutionContext execContext, Source source) throws SAXException {
  if (reader instanceof SmooksXMLReader) {
    ((SmooksXMLReader) reader).setExecutionContext(execContext);
  }
  if (reader instanceof JavaXMLReader) {
    if (!(source instanceof JavaSource)) {
      throw new SAXException("A " + JavaSource.class.getName() + " source must be supplied for " + JavaXMLReader.class.getName() + " implementations.");
    }
    ((JavaXMLReader) reader).setSourceObjects(((JavaSource) source).getSourceObjects());
  }
  reader.setContentHandler(handler);
  try {
    reader.setProperty("http://xml.org/sax/properties/lexical-handler", handler);
  } catch (SAXNotRecognizedException e) {
    logger.debug("XMLReader property 'http://xml.org/sax/properties/lexical-handler' not recognized by XMLReader '" + reader.getClass().getName() + "'.");
  }
}
origin: org.milyn/milyn-smooks-all

protected void configureReader(XMLReader reader, DefaultHandler2 handler, ExecutionContext execContext, Source source) throws SAXException {
  if (reader instanceof SmooksXMLReader) {
    ((SmooksXMLReader) reader).setExecutionContext(execContext);
  }
  if (reader instanceof JavaXMLReader) {
    if (!(source instanceof JavaSource)) {
      throw new SAXException("A " + JavaSource.class.getName() + " source must be supplied for " + JavaXMLReader.class.getName() + " implementations.");
    }
    ((JavaXMLReader) reader).setSourceObjects(((JavaSource) source).getSourceObjects());
  }
  reader.setContentHandler(handler);
  try {
    reader.setProperty("http://xml.org/sax/properties/lexical-handler", handler);
  } catch (SAXNotRecognizedException e) {
    logger.debug("XMLReader property 'http://xml.org/sax/properties/lexical-handler' not recognized by XMLReader '" + reader.getClass().getName() + "'.");
  }
}
origin: org.virtuslab/milyn-smooks-core

protected void configureReader(XMLReader reader, DefaultHandler2 handler, ExecutionContext execContext, Source source) throws SAXException {
  if (reader instanceof SmooksXMLReader) {
    ((SmooksXMLReader) reader).setExecutionContext(execContext);
  }
  if (reader instanceof JavaXMLReader) {
    if (!(source instanceof JavaSource)) {
      throw new SAXException("A " + JavaSource.class.getName() + " source must be supplied for " + JavaXMLReader.class.getName() + " implementations.");
    }
    ((JavaXMLReader) reader).setSourceObjects(((JavaSource) source).getSourceObjects());
  }
  reader.setContentHandler(handler);
  try {
    reader.setProperty("http://xml.org/sax/properties/lexical-handler", handler);
  } catch (SAXNotRecognizedException e) {
    logger.debug("XMLReader property 'http://xml.org/sax/properties/lexical-handler' not recognized by XMLReader '" + reader.getClass().getName() + "'.");
  }
}
org.milyn.delivery.javaJavaXMLReader

Javadoc

Java org.xml.sax.XMLReader for Smooks.

Most used methods

  • setSourceObjects
    Set the list of Source Java objects to be used to generate events on the org.xml.sax.ContentHandler

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSharedPreferences (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • addToBackStack (FragmentTransaction)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • StringTokenizer (java.util)
    The string tokenizer class allows an application to break a string into tokens. The tokenization met
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