public class OwCMISContentElement extends Object implements com.wewebu.ow.server.ecm.OwContentElement
CMIS content element implementation.
Wrapping of native org.apache.chemistry.opencmis.commons.data.ContentStream
interface.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
Constructor and Description |
---|
OwCMISContentElement(org.apache.chemistry.opencmis.commons.data.ContentStream stream) |
OwCMISContentElement(org.apache.chemistry.opencmis.commons.data.ContentStream stream,
int pageNr) |
Modifier and Type | Method and Description |
---|---|
String |
getContentFilePath() |
Object |
getContentObject() |
int |
getContentRepresentation() |
InputStream |
getContentStream(OutputStream out_p) |
String |
getContentURL() |
String |
getMIMEParameter() |
String |
getMIMEType() |
protected org.apache.chemistry.opencmis.commons.data.ContentStream |
getNativeObject()
Return the native object,
which is of type ContentStream
|
int |
getPageNumber(int lPageIndex_p) |
boolean |
isInputStreamNative() |
void |
releaseResources() |
public OwCMISContentElement(org.apache.chemistry.opencmis.commons.data.ContentStream stream)
public OwCMISContentElement(org.apache.chemistry.opencmis.commons.data.ContentStream stream, int pageNr)
public String getContentFilePath() throws com.wewebu.ow.server.exceptions.OwException
getContentFilePath
in interface com.wewebu.ow.server.ecm.OwContentElement
com.wewebu.ow.server.exceptions.OwException
public String getContentURL() throws com.wewebu.ow.server.exceptions.OwException
getContentURL
in interface com.wewebu.ow.server.ecm.OwContentElement
com.wewebu.ow.server.exceptions.OwException
public Object getContentObject() throws com.wewebu.ow.server.exceptions.OwException
getContentObject
in interface com.wewebu.ow.server.ecm.OwContentElement
com.wewebu.ow.server.exceptions.OwException
public int getContentRepresentation() throws com.wewebu.ow.server.exceptions.OwException
getContentRepresentation
in interface com.wewebu.ow.server.ecm.OwContentElement
com.wewebu.ow.server.exceptions.OwException
public boolean isInputStreamNative()
isInputStreamNative
in interface com.wewebu.ow.server.ecm.OwContentElement
public InputStream getContentStream(OutputStream out_p) throws com.wewebu.ow.server.exceptions.OwException
getContentStream
in interface com.wewebu.ow.server.ecm.OwContentElement
com.wewebu.ow.server.exceptions.OwException
public int getPageNumber(int lPageIndex_p) throws com.wewebu.ow.server.exceptions.OwException
getPageNumber
in interface com.wewebu.ow.server.ecm.OwContentElement
com.wewebu.ow.server.exceptions.OwException
public String getMIMEType() throws com.wewebu.ow.server.exceptions.OwException
getMIMEType
in interface com.wewebu.ow.server.ecm.OwContentElement
com.wewebu.ow.server.exceptions.OwException
public String getMIMEParameter() throws com.wewebu.ow.server.exceptions.OwException
getMIMEParameter
in interface com.wewebu.ow.server.ecm.OwContentElement
com.wewebu.ow.server.exceptions.OwException
public void releaseResources()
releaseResources
in interface com.wewebu.ow.server.ecm.OwContentElement
protected org.apache.chemistry.opencmis.commons.data.ContentStream getNativeObject()
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.