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
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MetaLoaderFilter
public MetaLoaderFilter()
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