org.exoplatform.clouddrive.cmis
Interface ContentReader

All Known Implementing Classes:
JCRLocalCMISDrive.DocumentContent, PDFViewerStorage.PDFFile

public interface ContentReader

An access to CMIS file content connected with particular drive instance.
Created by The eXo Platform SAS

Version:
$Id: ContentReader.java 00000 Nov 19, 2014 pnedonosko $
Author:
Peter Nedonosko

Method Summary
 long getLength()
          Content length in bytes.
 String getMimeType()
          Content type in MIME format.
 InputStream getStream()
          Content stream for reading.
 String getTypeMode()
          Optional representation (UI) mode for this content type.
 

Method Detail

getStream

InputStream getStream()
Content stream for reading.

Returns:
InputStream

getMimeType

String getMimeType()
Content type in MIME format.

Returns:
String

getTypeMode

String getTypeMode()
Optional representation (UI) mode for this content type. Can be null.

Returns:
String a type mode or null if not available.

getLength

long getLength()
Content length in bytes.

Returns:
Long


Copyright © 2003–2015 eXo Platform SAS. All rights reserved.