org.xcmis.spi.utils
Class CmisDocumentReaderService

java.lang.Object
  extended by org.xcmis.spi.utils.CmisDocumentReaderService
All Implemented Interfaces:
org.exoplatform.services.document.DocumentReaderService

public class CmisDocumentReaderService
extends Object
implements org.exoplatform.services.document.DocumentReaderService

Implementation of DocumentReaderService with predefined parsers.


Constructor Summary
CmisDocumentReaderService()
          Instantiates a new cmis document reader sercice.
 
Method Summary
 void addDocumentReader(org.exoplatform.container.component.ComponentPlugin plugin)
           
 String getContentAsText(String mimeType, InputStream is)
           
 org.exoplatform.services.document.DocumentReader getDocumentReader(String mimeType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmisDocumentReaderService

public CmisDocumentReaderService()
Instantiates a new cmis document reader sercice.

Method Detail

getContentAsText

public String getContentAsText(String mimeType,
                               InputStream is)
                        throws Exception
Specified by:
getContentAsText in interface org.exoplatform.services.document.DocumentReaderService
Throws:
Exception
See Also:
DocumentReaderService.getContentAsText(java.lang.String, java.io.InputStream)

getDocumentReader

public org.exoplatform.services.document.DocumentReader getDocumentReader(String mimeType)
                                                                   throws org.exoplatform.services.document.HandlerNotFoundException
Specified by:
getDocumentReader in interface org.exoplatform.services.document.DocumentReaderService
Throws:
org.exoplatform.services.document.HandlerNotFoundException
See Also:
DocumentReaderService.getDocumentReader(java.lang.String)

addDocumentReader

public void addDocumentReader(org.exoplatform.container.component.ComponentPlugin plugin)
Parameters:
plugin - ComponentPlugin


Copyright © 2011 eXo Platform SAS. All Rights Reserved.