Class IIOMetadataDumper
- Object
- 
- IIOMetadataDumper
 
- 
 public final class IIOMetadataDumper extends Object Utility class that can be used to dump a DOM tree in a formatted way.It is useful for inspecting the metadata inside GeoTiff files. - Since:
- 2.3.x
- Author:
- Simone Giannecchini
 
- 
- 
Constructor SummaryConstructors Constructor Description IIOMetadataDumper(IIOMetadataNode rootNode)Constructor for aIIOMetadataDumperaccepting anIIOMetadataNode.IIOMetadataDumper(IIOMetadata metadata, String name)Constructor for aIIOMetadataDumperaccepting andIIOMetadataand aStringfor the format name of the XML metadata to use.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFormatName()Retrieves the name of the format we want to get the XML representation for.StringgetMetadata()Allows me to get the generated XML representation for the underlying tree;voidsetFormatName(String formatName)Sets the name of the format we want to get the XML representation for.
 
- 
- 
- 
Constructor Detail- 
IIOMetadataDumperpublic IIOMetadataDumper(IIOMetadata metadata, String name) Constructor for aIIOMetadataDumperaccepting andIIOMetadataand aStringfor the format name of the XML metadata to use.- Parameters:
- metadata- The metadta to display.
- name- The format of the metaata to display.
 
 - 
IIOMetadataDumperpublic IIOMetadataDumper(IIOMetadataNode rootNode) Constructor for aIIOMetadataDumperaccepting anIIOMetadataNode. It has no way to choose the format of the metadata to parse since this choice has been already done previously.
 
- 
 - 
Method Detail- 
getMetadatapublic String getMetadata() Allows me to get the generated XML representation for the underlying tree;- Returns:
- A formatted XML string.
 
 - 
getFormatNamepublic String getFormatName() Retrieves the name of the format we want to get the XML representation for.- Returns:
- The name of the format we want to get the XML representation for.
 
 - 
setFormatNamepublic void setFormatName(String formatName) Sets the name of the format we want to get the XML representation for.This method causes a new generation of the string representation if the format is different from the one stored. - Parameters:
- formatName- The name of the format we want to get the XML representation for.
 
 
- 
 
-