|
Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bea.content.loader.bulk.MetaLoaderFilter
public class MetaLoaderFilter
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
MIME type
).
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.
Constructor Summary | |
---|---|
MetaLoaderFilter()
|
Method Summary | |
---|---|
void |
loadProperties(File f,
Properties p,
BulkLoader loader)
Fill out the properties with image metadata from the specified file. |
static void |
main(String[] args)
Print the sizes of the files specified on the command-line. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MetaLoaderFilter()
Method Detail |
---|
public void loadProperties(File f, Properties p, BulkLoader loader)
If the filename doesn't correspond to a GIF, JPEG, XBM, or PNG, it will be ignored.
loadProperties
in interface LoaderFilter
public static void main(String[] args) throws Exception
Exception
|
Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |