MetaLoaderFilter Class

com.bea.content.loader.bulk
MetaLoaderFilter Class

public class MetaLoaderFilter

    extends Object
    implements LoaderFilter

BulkLoader filter which can determine "width" and "height" metadata for GIF, JPEG, XBM, and PNG image files.

The image type is determined from the file name (based upon the MimeTypeHelper).

This class will generally not read in the entire contents of the file. It will instead attempt to get the metadata from the image format headers. However, it does not implement full decoders for the image formats, so, there might be images files for which this doesn't work.


Hierarchy
Object
  MetaLoaderFilter
All Implemented Interfaces

LoaderFilter

Constructor Summary

MetaLoaderFilter()

 

Method Summary

public void
loadProperties(File f, Properties p, BulkLoader loader)
Fill out the properties with image metadata from the specified file.
public static void
main(String[] args)
Print the sizes of the files specified on the command-line.
 
Methods from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
   
Methods from interface com.bea.content.loader.bulk.LoaderFilter
loadProperties
 

Constructor Detail

MetaLoaderFilter

public MetaLoaderFilter()
 

Method Detail

loadProperties(File, Properties, BulkLoader) Method

public void loadProperties(File f, 
                           Properties p, 
                           BulkLoader loader)
Fill out the properties with image metadata from the specified file.

If the filename doesn't correspond to a GIF, JPEG, XBM, or PNG, it will be ignored.


main(String[]) Method

public static void main(String[] args)
throws Exception
Print the sizes of the files specified on the command-line.

Exceptions

Exception