it.geosolutions.imageio.core
Class CoreCommonIIOStreamMetadata

Object
  extended by IIOMetadata
      extended by CoreCommonIIOStreamMetadata

public class CoreCommonIIOStreamMetadata
extends IIOMetadata

Class representing common stream metadata

Author:
Simone Giannecchini, GeoSolutions., Daniele Romagnoli, GeoSolutions.

Field Summary
static String nativeMetadataFormatClassName
          The name of the class implementing IIOMetadataFormat and representing the native metadata format for this object.
static String nativeMetadataFormatName
          The name of the native metadata format for this object.
 
Fields inherited from class IIOMetadata
controller, defaultController, extraMetadataFormatClassNames, extraMetadataFormatNames, standardFormatSupported
 
Constructor Summary
CoreCommonIIOStreamMetadata(String[] datasetNames)
          Public constructor for common stream metadata object.
 
Method Summary
 Node getAsTree(String formatName)
          Returns an XML DOM Node object that represents the root of a tree of common stream metadata contained within this object according to the conventions defined by a given metadata format name.
 boolean isReadOnly()
          Returns true since this object does not support the mergeTree, setFromTree, and reset methods.
 void mergeTree(String formatName, Node root)
          Method unsupported.
 void reset()
          Method unsupported.
 
Methods inherited from class IIOMetadata
activateController, getController, getDefaultController, getExtraMetadataFormatNames, getMetadataFormat, getMetadataFormatNames, getNativeMetadataFormatName, getStandardChromaNode, getStandardCompressionNode, getStandardDataNode, getStandardDimensionNode, getStandardDocumentNode, getStandardTextNode, getStandardTileNode, getStandardTransparencyNode, getStandardTree, hasController, isStandardMetadataFormatSupported, setController, setFromTree
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nativeMetadataFormatName

public static final String nativeMetadataFormatName
The name of the native metadata format for this object.

See Also:
Constant Field Values

nativeMetadataFormatClassName

public static final String nativeMetadataFormatClassName
The name of the class implementing IIOMetadataFormat and representing the native metadata format for this object.

See Also:
Constant Field Values
Constructor Detail

CoreCommonIIOStreamMetadata

public CoreCommonIIOStreamMetadata(String[] datasetNames)
Public constructor for common stream metadata object. It builds a proper CoreCommonIIOStreamMetadata object given the dataset names available within the underlying stream.

Parameters:
datasetNames - the dataset names available within the datasource.
Method Detail

getAsTree

public Node getAsTree(String formatName)
Returns an XML DOM Node object that represents the root of a tree of common stream metadata contained within this object according to the conventions defined by a given metadata format name.

Specified by:
getAsTree in class IIOMetadata
Parameters:
formatName - the name of the requested metadata format. Note that actually, the only supported format name is the nativeMetadataFormatName. Requesting other format names will result in an IllegalArgumentException

isReadOnly

public boolean isReadOnly()
Returns true since this object does not support the mergeTree, setFromTree, and reset methods.

Specified by:
isReadOnly in class IIOMetadata
Returns:
true since this IIOMetadata object cannot be modified.

mergeTree

public void mergeTree(String formatName,
                      Node root)
               throws IIOInvalidTreeException
Method unsupported. Calling this method will throws an UnsupportedOperationException

Specified by:
mergeTree in class IIOMetadata
Throws:
IIOInvalidTreeException
See Also:
javax.imageio.metadata.IIOMetadata#mergeTree(), isReadOnly()

reset

public void reset()
Method unsupported. Calling this method will throws an UnsupportedOperationException

Specified by:
reset in class IIOMetadata
See Also:
IIOMetadata.reset(), isReadOnly()


Copyright © 2006-2010 GeoSolutions. All Rights Reserved.