< prev index next >

src/java.desktop/share/classes/javax/imageio/plugins/tiff/TIFFField.java

Print this page

        

*** 410,420 **** odata[0] = data; } /** * Creates a {@code TIFFField} from a TIFF native image ! * metadata node. If the value of the <tt>"tagNumber"</tt> attribute * of the node is not found in {@code tagSet} then a new * {@code TIFFTag} with name {@code TIFFTag.UNKNOWN_TAG_NAME} * will be created and assigned to the field. * * @param tagSet The {@code TIFFTagSet} to which the --- 410,420 ---- odata[0] = data; } /** * Creates a {@code TIFFField} from a TIFF native image ! * metadata node. If the value of the <tt>"number"</tt> attribute * of the node is not found in {@code tagSet} then a new * {@code TIFFTag} with name {@code TIFFTag.UNKNOWN_TAG_NAME} * will be created and assigned to the field. * * @param tagSet The {@code TIFFTagSet} to which the
*** 422,431 **** --- 422,435 ---- * @param node A native TIFF image metadata {@code TIFFField} node. * @throws NullPointerException if {@code node} is * {@code null}. * @throws IllegalArgumentException if the name of the node is not * {@code "TIFFField"}. + * @throws NullPointerException if the node does not contain any data. + * @throws IllegalArgumentException if the combination of node attributes + * and data is not legal per the {@link #TIFFField(TIFFTag,int,int,Object)} + * constructor specification. * @return A new {@code TIFFField}. */ public static TIFFField createFromMetadataNode(TIFFTagSet tagSet, Node node) { if (node == null) {
< prev index next >