org.exoplatform.clouddrive.cmis
Class JCRLocalCMISDrive.DocumentContent
java.lang.Object
org.exoplatform.clouddrive.cmis.JCRLocalCMISDrive.DocumentContent
- All Implemented Interfaces:
- ContentReader
- Enclosing class:
- JCRLocalCMISDrive
protected class JCRLocalCMISDrive.DocumentContent
- extends Object
- implements ContentReader
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
JCRLocalCMISDrive.DocumentContent
protected JCRLocalCMISDrive.DocumentContent(org.apache.chemistry.opencmis.commons.data.ContentStream content,
String type,
String fileName)
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.