Tabnine Logo
ODLparser.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
ucar.nc2.iosp.hdf4.ODLparser
constructor

Best Java code snippets using ucar.nc2.iosp.hdf4.ODLparser.<init> (Showing top 10 results out of 315)

origin: edu.ucar/netcdf

 static public void main(String args[]) throws IOException {
  ODLparser p = new ODLparser();
  p.parseFile("c:/temp/odl.struct.txt");
 }
}
origin: Unidata/thredds

 static public void main(String args[]) throws IOException {
  ODLparser p = new ODLparser();
  p.parseFile("c:/temp/odl.struct.txt");
 }
}
origin: edu.ucar/cdm

 static public void main(String args[]) throws IOException {
  ODLparser p = new ODLparser();
  p.parseFile("c:/temp/odl.struct.txt");
 }
}
origin: bcdev/beam

public static Element getEosElement(String name, Group eosGroup) throws IOException {
  String smeta = getEosMetadata(name, eosGroup);
  if (smeta == null) {
    return null;
  }
  smeta = smeta.replaceAll("\\s+=\\s+", "=");
  smeta = smeta.replaceAll("\\?", "_"); // XML names cannot contain the character "?".
  StringBuilder sb = new StringBuilder(smeta.length());
  StringTokenizer lineFinder = new StringTokenizer(smeta, "\t\n\r\f");
  while (lineFinder.hasMoreTokens()) {
    String line = lineFinder.nextToken().trim();
    sb.append(line);
    sb.append("\n");
  }
  ODLparser parser = new ODLparser();
  return parser.parseFromString(sb.toString());// now we have the ODL in JDOM elements
}
origin: edu.ucar/cdm

static public boolean getEosInfo(NetcdfFile ncfile, Group eosGroup, Formatter f) throws IOException {
 String smeta = getStructMetadata(eosGroup);
 if (smeta == null) {
  f.format("No StructMetadata variables in group %s %n", eosGroup.getFullName());
  return false;
 }
 f.format("raw = %n%s%n", smeta);
 ODLparser parser = new ODLparser();
 parser.parseFromString(smeta); // now we have the ODL in JDOM elements
 StringWriter sw = new StringWriter(5000);
 parser.showDoc(new PrintWriter(sw));
 f.format("parsed = %n%s%n", sw.toString());
 return true;
}
origin: edu.ucar/netcdf

static public boolean getEosInfo(NetcdfFile ncfile, Group eosGroup, Formatter f) throws IOException {
 String smeta = getStructMetadata(eosGroup);
 if (smeta == null) {
  f.format("No StructMetadata variables in group %s %n", eosGroup.getFullName());
  return false;
 }
 f.format("raw = %n%s%n", smeta);
 ODLparser parser = new ODLparser();
 parser.parseFromString(smeta); // now we have the ODL in JDOM elements
 ByteArrayOutputStream bos = new ByteArrayOutputStream(1000 * 1000);
 parser.showDoc(bos);
 f.format("parsed = %n%s%n", bos.toString());
 return true;
}
origin: Unidata/thredds

 /**
  *
  */
static public boolean getEosInfo(NetcdfFile ncfile, Group eosGroup, Formatter f) throws IOException {
 String smeta = getStructMetadata(eosGroup);
 if (smeta == null) {
  f.format("No StructMetadata variables in group %s %n", eosGroup.getFullName());
  return false;
 }
 f.format("raw = %n%s%n", smeta);
 ODLparser parser = new ODLparser();
 parser.parseFromString(smeta); // now we have the ODL in JDOM elements
 StringWriter sw = new StringWriter(5000);
 parser.showDoc(new PrintWriter(sw));
 f.format("parsed = %n%s%n", sw.toString());
 return true;
}
origin: edu.ucar/cdm

Group rootg = ncfile.getRootGroup();
ODLparser parser = new ODLparser();
origin: Unidata/thredds

Group rootg = ncfile.getRootGroup();
ODLparser parser = new ODLparser();
origin: edu.ucar/netcdf

Group rootg = ncfile.getRootGroup();
ODLparser parser = new ODLparser();
ucar.nc2.iosp.hdf4ODLparser<init>

Popular methods of ODLparser

  • parseFromString
  • addField
  • endGroup
  • endObject
  • parseFile
  • parseValueCollection
  • showDoc
  • startGroup
  • startObject
  • stripQuotes

Popular in Java

  • Reactive rest calls using spring rest template
  • findViewById (Activity)
  • setScale (BigDecimal)
  • onRequestPermissionsResult (Fragment)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Best plugins for Eclipse
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