org.exoplatform.clouddrive.cmis
Class JCRLocalCMISDrive.DocumentContent

java.lang.Object
  extended by org.exoplatform.clouddrive.cmis.JCRLocalCMISDrive.DocumentContent
All Implemented Interfaces:
ContentReader
Enclosing class:
JCRLocalCMISDrive

protected class JCRLocalCMISDrive.DocumentContent
extends Object
implements ContentReader


Field Summary
protected  org.apache.chemistry.opencmis.commons.data.ContentStream content
           
protected  String fileName
           
protected  long length
           
protected  String type
           
 
Constructor Summary
protected JCRLocalCMISDrive.DocumentContent(org.apache.chemistry.opencmis.commons.data.ContentStream content, String type, String fileName)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

content

protected final org.apache.chemistry.opencmis.commons.data.ContentStream content

type

protected final String type

length

protected final long length

fileName

protected final String fileName
Constructor Detail

JCRLocalCMISDrive.DocumentContent

protected JCRLocalCMISDrive.DocumentContent(org.apache.chemistry.opencmis.commons.data.ContentStream content,
                                            String type,
                                            String fileName)
Method Detail

getStream

public InputStream getStream()
Content stream for reading.

Specified by:
getStream in interface ContentReader
Returns:
InputStream

getMimeType

public String getMimeType()
Content type in MIME format.

Specified by:
getMimeType in interface ContentReader
Returns:
String

getTypeMode

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

Specified by:
getTypeMode in interface ContentReader
Returns:
String a type mode or null if not available.

getLength

public long getLength()
Content length in bytes.

Specified by:
getLength in interface ContentReader
Returns:
Long


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