org.geotools.image.io.metadata
Class MetadataMerge

java.lang.Object
  extended by org.geotools.image.io.metadata.MetadataMerge

public class MetadataMerge
extends java.lang.Object

Merges metadata.

Since:
2.5
Version:
$Id: MetadataMerge.java 30679 2008-06-13 10:19:41Z acuster $
Author:
Martin Desruisseaux

Method Summary
static javax.imageio.metadata.IIOMetadata merge(javax.imageio.metadata.IIOMetadata source, javax.imageio.metadata.IIOMetadata target)
          Merges the two specified tree.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

merge

public static javax.imageio.metadata.IIOMetadata merge(javax.imageio.metadata.IIOMetadata source,
                                                       javax.imageio.metadata.IIOMetadata target)
                                                throws java.lang.IllegalStateException,
                                                       javax.imageio.metadata.IIOInvalidTreeException
Merges the two specified tree. If both source and target metadata are non-null, then this method performs the following steps:

Parameters:
source - The source metadata, or null.
target - The target metadata, or null.
Returns:
source if target was null, or target otherwise.
Throws:
java.lang.IllegalStateException - if target is read-only.
javax.imageio.metadata.IIOInvalidTreeException - if the source tree cannot be parsed successfully.


Copyright © 1996-2010 Geotools. All Rights Reserved.