net.sourceforge.sconman.handlers
Class ImageHandler

java.lang.Object
  extended by net.sourceforge.sconman.handlers.NullHandler
      extended by net.sourceforge.sconman.handlers.ImageHandler
All Implemented Interfaces:
IContentTypeHandler

public class ImageHandler
extends NullHandler

Knows how to handle image contents

Author:
mikeshadow

Constructor Summary
ImageHandler()
          Constructor for NullHandler.
 
Method Summary
 void getInfo(Content content, boolean overrideAttributes, boolean createThumbnail)
          Tries to read info from content's data
 boolean hasThumbnail()
          Return true if the content has thumbnail
 
Methods inherited from class net.sourceforge.sconman.handlers.NullHandler
getFieldsAsString, getTextReader, writeAttributes, writeText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageHandler

public ImageHandler()
Constructor for NullHandler.

Method Detail

hasThumbnail

public boolean hasThumbnail()
Description copied from interface: IContentTypeHandler
Return true if the content has thumbnail

Specified by:
hasThumbnail in interface IContentTypeHandler
Overrides:
hasThumbnail in class NullHandler
Returns:
true if the content has thumbnail

getInfo

public void getInfo(Content content,
                    boolean overrideAttributes,
                    boolean createThumbnail)
Description copied from interface: IContentTypeHandler
Tries to read info from content's data

Specified by:
getInfo in interface IContentTypeHandler
Overrides:
getInfo in class NullHandler
Parameters:
content - The content to read attributes from
overrideAttributes - True to extract attributes from file and override existent content attributes
createThumbnail - True to create thumbnail


Copyright null null. All Rights Reserved.