Tabnine Logo
XmlDetectionUtil.isStaxPresent
Code IndexAdd Tabnine to your IDE (free)

How to use
isStaxPresent
method
in
ca.uhn.fhir.util.XmlDetectionUtil

Best Java code snippets using ca.uhn.fhir.util.XmlDetectionUtil.isStaxPresent (Showing top 4 results out of 315)

origin: jamesagnew/hapi-fhir

@Override
protected String parse(String theValue) {
  if (XmlDetectionUtil.isStaxPresent()) {
    // for validation
    XmlUtil.parse(theValue);
  }
  return theValue;
}
origin: jamesagnew/hapi-fhir

BaseClient(IHttpClient theClient, String theUrlBase, RestfulClientFactory theFactory) {
  super();
  myClient = theClient;
  myUrlBase = theUrlBase;
  myFactory = theFactory;
  /*
   * This property is used by unit tests - do not rely on it in production code
   * as it may change at any time. If you want to capture responses in a reliable
   * way in your own code, just use client interceptors
   */
  if ("true".equals(System.getProperty(HAPI_CLIENT_KEEPRESPONSES))) {
    setKeepResponses(true);
  }
  if (XmlDetectionUtil.isStaxPresent() == false) {
    myEncoding = EncodingEnum.JSON;
  }
}
origin: ca.uhn.hapi.fhir/hapi-fhir-base

@Override
protected String parse(String theValue) {
  if (XmlDetectionUtil.isStaxPresent()) {
    // for validation
    XmlUtil.parse(theValue);
  }
  return theValue;
}
origin: ca.uhn.hapi.fhir/hapi-fhir-client

BaseClient(IHttpClient theClient, String theUrlBase, RestfulClientFactory theFactory) {
  super();
  myClient = theClient;
  myUrlBase = theUrlBase;
  myFactory = theFactory;
  /*
   * This property is used by unit tests - do not rely on it in production code
   * as it may change at any time. If you want to capture responses in a reliable
   * way in your own code, just use client interceptors
   */
  if ("true".equals(System.getProperty(HAPI_CLIENT_KEEPRESPONSES))) {
    setKeepResponses(true);
  }
  if (XmlDetectionUtil.isStaxPresent() == false) {
    myEncoding = EncodingEnum.JSON;
  }
}
ca.uhn.fhir.utilXmlDetectionUtilisStaxPresent

Javadoc

This method will return true if a StAX XML parsing library is present on the classpath

Popular methods of XmlDetectionUtil

    Popular in Java

    • Updating database using SQL prepared statement
    • getContentResolver (Context)
    • findViewById (Activity)
    • getResourceAsStream (ClassLoader)
    • PrintWriter (java.io)
      Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
    • Path (java.nio.file)
    • ArrayList (java.util)
      ArrayList is an implementation of List, backed by an array. All optional operations including adding
    • JarFile (java.util.jar)
      JarFile is used to read jar entries and their associated data from jar files.
    • FileUtils (org.apache.commons.io)
      General file manipulation utilities. Facilities are provided in the following areas: * writing to a
    • Join (org.hibernate.mapping)
    • Top plugins for WebStorm
    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