Tabnine Logo
RuntimeConfigParser.read
Code IndexAdd Tabnine to your IDE (free)

How to use
read
method
in
ucar.nc2.util.xml.RuntimeConfigParser

Best Java code snippets using ucar.nc2.util.xml.RuntimeConfigParser.read (Showing top 4 results out of 315)

origin: Unidata/thredds

public ThreddsConfigReader( String filename, org.slf4j.Logger log) {
 this.log = log;
 File file = new File(filename);
 if (!file.exists()) return;
 log.info( "ThreddsConfigReader reading xml file = " + filename);
 org.jdom2.Document doc;
 try {
  InputStream is = new FileInputStream(filename);
  SAXBuilder builder = new SAXBuilder();
  doc = builder.build(is);
 } catch (IOException | JDOMException e) {
   log.error( "ThreddsConfigReader: incorrectly formed xml file [" + filename + "]: " + e.getMessage());
  return;
 }
 rootElem = doc.getRootElement();
 // nj22 runtime loading
 Element elem = rootElem.getChild("nj22Config");
 if (elem != null) {
  StringBuilder errlog = new StringBuilder();
  RuntimeConfigParser.read(elem, errlog);
  if (errlog.length() > 0)
   //System.out.println( "ThreddsConfig:WARN: " + errlog.toString());
    log.warn( "ThreddsConfigReader nj22Config: {}", errlog.toString());
 }
}
origin: Unidata/thredds

public static void read(InputStream is, StringBuilder errlog) throws IOException {
 Document doc;
 SAXBuilder saxBuilder = new SAXBuilder();
 try {
  doc = saxBuilder.build(is);
 } catch (JDOMException e) {
  throw new IOException(e.getMessage());
 }
 read(doc.getRootElement(), errlog);
}
origin: edu.ucar/cdm

public static void read(InputStream is, StringBuilder errlog) throws IOException {
 Document doc;
 SAXBuilder saxBuilder = new SAXBuilder();
 try {
  doc = saxBuilder.build(is);
 } catch (JDOMException e) {
  throw new IOException(e.getMessage());
 }
 read(doc.getRootElement(), errlog);
}
origin: edu.ucar/netcdf

public static void read(InputStream is, StringBuilder errlog) throws IOException {
 Document doc;
 SAXBuilder saxBuilder = new SAXBuilder();
 try {
  doc = saxBuilder.build(is);
 } catch (JDOMException e) {
  throw new IOException(e.getMessage());
 }
 read(doc.getRootElement(), errlog);
}
ucar.nc2.util.xmlRuntimeConfigParserread

Popular methods of RuntimeConfigParser

    Popular in Java

    • Parsing JSON documents to java classes using gson
    • getContentResolver (Context)
    • getExternalFilesDir (Context)
    • orElseThrow (Optional)
      Return the contained value, if present, otherwise throw an exception to be created by the provided s
    • URI (java.net)
      A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
    • Permission (java.security)
      Legacy security code; do not use.
    • BlockingQueue (java.util.concurrent)
      A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
    • Executor (java.util.concurrent)
      An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
    • SSLHandshakeException (javax.net.ssl)
      The exception that is thrown when a handshake could not be completed successfully.
    • BoxLayout (javax.swing)
    • Top Sublime Text 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