< prev index next >
src/java.desktop/share/classes/com/sun/imageio/plugins/jpeg/JPEGMetadataFormat.java
Print this page
*** 131,146 ****
}
return false;
}
/**
! * Returns <code>true</code> if the named element occurs in the
* subtree of the format starting with the node named by
! * <code>subtreeName</code>, including the node
! * itself. <code>subtreeName</code> may be any node in
* the format. If it is not, an
! * <code>IllegalArgumentException</code> is thrown.
*/
protected boolean isInSubtree(String elementName,
String subtreeName) {
if (elementName.equals(subtreeName)) {
return true;
--- 131,146 ----
}
return false;
}
/**
! * Returns {@code true} if the named element occurs in the
* subtree of the format starting with the node named by
! * {@code subtreeName}, including the node
! * itself. {@code subtreeName} may be any node in
* the format. If it is not, an
! * {@code IllegalArgumentException} is thrown.
*/
protected boolean isInSubtree(String elementName,
String subtreeName) {
if (elementName.equals(subtreeName)) {
return true;
< prev index next >