net.sourceforge.sconman.handlers
Class MailHandler

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

public class MailHandler
extends NullHandler

Mail handler knows how to extract mail message information, and all the text within, including attachments

Author:
mikeshadow

Constructor Summary
MailHandler()
           
 
Method Summary
 void getInfo(Content content, boolean overrideAttributes, boolean createThumbnail)
          Tries to read info from content's data
 java.io.Reader getTextReader(Content content)
          Implement this method to return a reader that provides the text associated to the content
 
Methods inherited from class net.sourceforge.sconman.handlers.NullHandler
getFieldsAsString, hasThumbnail, writeAttributes, writeText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailHandler

public MailHandler()
Method Detail

getTextReader

public java.io.Reader getTextReader(Content content)
                             throws java.io.IOException
Description copied from interface: IContentTypeHandler
Implement this method to return a reader that provides the text associated to the content

Specified by:
getTextReader in interface IContentTypeHandler
Overrides:
getTextReader in class NullHandler
Parameters:
content - The content
Returns:
A filtered input stream
Throws:
java.io.IOException - If there's an IO problem

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.