org.im4java.core
Class Info

java.lang.Object
  extended by org.im4java.core.Info

public class Info
extends java.lang.Object

This class implements an image-information object.

The class just calls "identify -verbose" and parses the output.

Version:
$Revision: 1.6 $
Author:
$Author: bablokb, Bruno Mascret (warnings) $

Field Summary
private  java.util.Hashtable<java.lang.String,java.lang.String> iAttributes
          Internal hashtable with image-attributes.
private  int iOldIndent
          Current value of indentation level
private  java.lang.String iPrefix
          Current value of attribute-prefix
 
Constructor Summary
Info(java.lang.String pFilename)
          Constructor.
 
Method Summary
 java.lang.String getProperty(java.lang.String pPropertyName)
          Return the given property.
 java.util.Enumeration<java.lang.String> getPropertyNames()
          Return an enumeration of all properties.
private  void parseLine(java.lang.String pLine)
          Parse line of identify-output
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

iAttributes

private java.util.Hashtable<java.lang.String,java.lang.String> iAttributes
Internal hashtable with image-attributes.


iOldIndent

private int iOldIndent
Current value of indentation level


iPrefix

private java.lang.String iPrefix
Current value of attribute-prefix

Constructor Detail

Info

public Info(java.lang.String pFilename)
     throws InfoException
Constructor.

Throws:
InfoException
Method Detail

parseLine

private void parseLine(java.lang.String pLine)
Parse line of identify-output


getProperty

public java.lang.String getProperty(java.lang.String pPropertyName)
Return the given property.


getPropertyNames

public java.util.Enumeration<java.lang.String> getPropertyNames()
Return an enumeration of all properties.