spcp7.imagegallery.abstractionlayer.util
Class ImageFilterImpl

java.lang.Object
  extended by spcp7.imagegallery.abstractionlayer.util.ImageFilterImpl
All Implemented Interfaces:
ImageFilterFace

public class ImageFilterImpl
extends java.lang.Object
implements ImageFilterFace

Author:
Phillip Merensky

Constructor Summary
ImageFilterImpl()
          Default empty constructor
 
Method Summary
 boolean accept(java.lang.String imagePath)
           
 boolean acceptImageMimetype(java.lang.String mimeTypeString)
          This method looks for image mimetypes in the given string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageFilterImpl

public ImageFilterImpl()
Default empty constructor

Method Detail

accept

public boolean accept(java.lang.String imagePath)
Specified by:
accept in interface ImageFilterFace
Parameters:
imagePath - A path which point to a file/node.
Returns:
True if the pathstring provided points to an image, false otherwise.
See Also:
ImageFilterFace.accept(java.lang.String)

acceptImageMimetype

public boolean acceptImageMimetype(java.lang.String mimeTypeString)
Description copied from interface: ImageFilterFace
This method looks for image mimetypes in the given string.

Specified by:
acceptImageMimetype in interface ImageFilterFace
Parameters:
mimeTypeString - A String which contains a mimetype somewhere
Returns:
True if the string contains an image mimetype, false otherwise..
See Also:
ImageFilterFace.acceptImageMimetype(java.lang.String)


Copyright © 2008. All Rights Reserved.