cdm/src/main/java/ucar/nc2/NetcdfFile.java
public Group findGroup(String fullName) {
    if (fullName == null || fullName.length() == 0)
      return rootGroup;

    Group g = rootGroup;
    StringTokenizer stoke = new StringTokenizer(fullName, "/");
    while (stoke.hasMoreTokens()) {
      String groupName = NetcdfFile.makeNameUnescaped(stoke.nextToken());
      g = g.findGroup(groupName);
      if (g == null) return null;
    }
    return g;
  }
public Group findGroup(String fullName) {
    if (fullName == null || fullName.length() == 0)
      return rootGroup;

    Group g = rootGroup;
    StringTokenizer stoke = new StringTokenizer(fullName, "/");
    while (stoke.hasMoreTokens()) {
      String groupName = NetcdfFile.makeNameUnescaped(stoke.nextToken());
      g = g.findGroup(groupName);
      if (g == null) return null;
    }
    return g;
  }
public Group findGroup ( String fullName ) { if ( fullName == null || fullName . length ( ) == 0 ) return rootGroup ; Group g = rootGroup ; StringTokenizer stoke = new StringTokenizer ( fullName , "/" ) ; while ( stoke . hasMoreTokens ( ) ) { String groupName = NetcdfFile . makeNameUnescaped ( stoke . nextToken ( ) ) ; g = g . findGroup ( groupName ) ; if ( g == null ) return null ; } return g ; }
Find a Group, with the specified (full) name.
An embedded "/" is interpreted as separating group names.

@param fullName eg "/group/subgroup/wantGroup". Null or empty string returns the root group.
@return Group or null if not found.
Find a Group with the specified ( full ) name . An embedded / is interpreted as separating group names .