org.xcmis.spi.utils
Class CmisDocumentReaderService
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CmisDocumentReaderService
public CmisDocumentReaderService()
- Instantiates a new cmis document reader sercice.
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 © 2010 eXo Platform SAS. All Rights Reserved.