net.sourceforge.sconman.handlers
Class MSWordHandler

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

public class MSWordHandler
extends MSOfficeHandler

Knows how to handle Microsoft Office documents

Author:
mikeshadow

Nested Class Summary
 
Nested classes/interfaces inherited from class net.sourceforge.sconman.handlers.MSOfficeHandler
MSOfficeHandler.ContentPOIFSReaderListener
 
Constructor Summary
MSWordHandler()
           
 
Method Summary
 java.io.Reader getTextReader(Content content)
          Implement this method to return a reader that provides the text associated to the content
 void writeText(java.io.InputStream is, java.io.Writer out)
          Writtes all the MS Word document text to the output writer
 
Methods inherited from class net.sourceforge.sconman.handlers.MSOfficeHandler
getInfo
 
Methods inherited from class net.sourceforge.sconman.handlers.NullHandler
getFieldsAsString, hasThumbnail, writeAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MSWordHandler

public MSWordHandler()
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

writeText

public void writeText(java.io.InputStream is,
                      java.io.Writer out)
               throws java.io.IOException
Writtes all the MS Word document text to the output writer

Specified by:
writeText in interface IContentTypeHandler
Overrides:
writeText in class NullHandler
Throws:
java.io.IOException
See Also:
IContentTypeHandler.writeText(java.io.InputStream, java.io.Writer)


Copyright null null. All Rights Reserved.