protected class JCRLocalCMISDrive.DocumentContent extends Object implements ContentReader
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.chemistry.opencmis.commons.data.ContentStream |
content |
protected String |
fileName |
protected long |
length |
protected String |
type |
| Modifier | Constructor and Description |
|---|---|
protected |
JCRLocalCMISDrive.DocumentContent(org.apache.chemistry.opencmis.commons.data.ContentStream content,
String type,
String fileName) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected final org.apache.chemistry.opencmis.commons.data.ContentStream content
protected final String type
protected final long length
protected final String fileName
public InputStream getStream()
getStream in interface ContentReaderInputStreampublic String getMimeType()
getMimeType in interface ContentReaderStringpublic String getTypeMode()
null.getTypeMode in interface ContentReaderString a type mode or null if not available.public long getLength()
getLength in interface ContentReaderLongCopyright © 2003–2015 eXo Platform SAS. All rights reserved.