use of org.apache.chemistry.opencmis.client.api.CmisObject in project camel by apache.
the class CMISTestSupport method getDocumentContentAsString.
protected String getDocumentContentAsString(String nodeId) throws Exception {
CmisObject cmisObject = retrieveCMISObjectByIdFromServer(nodeId);
Document doc = (Document) cmisObject;
InputStream inputStream = doc.getContentStream().getStream();
return readFromStream(inputStream);
}
Aggregations