// return the child atom of the corresponding type. // type can contain grand children: e.g. type = "trak.mdia.minf" // return null if the atom does not contain such a child. public Atom getChild(String type) { if (mChildren == null) { return null; } String[] types = type.split("\\.", 2); for (Atom child : mChildren) { if (child.getTypeStr().equals(types[0])) { if (types.length == 1) { return child; } else { return child.getChild(types[1]); } } } return null; }