public final class IIOMetadataDumper extends Object
It is useful for inspecting the metadata inside GeoTiff files.
Constructor and Description |
---|
IIOMetadataDumper(IIOMetadataNode rootNode)
Constructor for a
IIOMetadataDumper accepting an IIOMetadataNode . |
IIOMetadataDumper(IIOMetadata metadata,
String name)
Constructor for a
IIOMetadataDumper accepting and IIOMetadata and a String for the format name of the XML metadata to use. |
Modifier and Type | Method and Description |
---|---|
String |
getFormatName()
Retrieves the name of the format we want to get the XML representation for.
|
String |
getMetadata()
Allows me to get the generated XML representation for the underlying tree;
|
void |
setFormatName(String formatName)
Sets the name of the format we want to get the XML representation for.
|
public IIOMetadataDumper(IIOMetadata metadata, String name)
IIOMetadataDumper
accepting and IIOMetadata
and a String
for the format name of the XML metadata to use.metadata
- The metadta to display.name
- The format of the metaata to display.public IIOMetadataDumper(IIOMetadataNode rootNode)
IIOMetadataDumper
accepting an IIOMetadataNode
. It has no
way to choose the format of the metadata to parse since this choice has been already done
previously.rootNode
- public String getMetadata()
public String getFormatName()
public void setFormatName(String formatName)
This method causes a new generation of the string representation if the format is different from the one stored.
formatName
- The name of the format we want to get the XML representation for.Copyright © 1996–2019 Geotools. All rights reserved.