concept content stream in category apache chemistry

This is an excerpt from Manning's book CMIS and Apache Chemistry in Action.
For the following examples, you can create a few documents using the Workbench, or update the content stream of existing documents with a file of your own (in the CMIS Workbench main window, click on a document, click on the Actions tab, and then specify your own local file to be used for Set Content Stream). Then experiment with the text-search syntax by adding modifiers and operators (see table 5.3) to your own terms in the CONTAINS() SQL query.
The second half of the doGet certainly isn’t surprising. If the stream ID has been provided, it will be used. If the return content stream is null, the document has no content or the stream ID wasn’t valid. Finally, the stream is forwarded to the web browser and the content stream is closed. Closing the stream is important in order to release all resources that are attached to it.
Listing 9.10. Output of cmis-sync when it sees a change that needs to be synced
================================== SOURCE repository info: ---------------------------------- Name: Main Repository Id: 068e0de6-434e-4106-99c2-a08c5ef4016d Vendor: Alfresco Version: 4.2.0 (4428) Latest change token: 1022 ================================== TARGET repository info: ---------------------------------- Name: Apache Chemistry OpenCMIS InMemory Repository Id: A1 Vendor: Apache Chemistry Version: 0.8.0-SNAPSHOT Path: /cmis-sync Last change synced: 1021 Processing: workspace://SpacesStore/1f9acfdf-d438-42c3-9bf4-2 69bb37d1617;1.0 Source Path: /blend/Art/Sunset.jpg Version label:V 1.25 Target object id: cmisbook:image Warning, target property changed but isn't writable in target: cmisbook:imageHeight target prop: cmisbook:xResolution target val: 72.0 Warning, target property changed but isn't writable in target: cmisbook:imageWidth target prop: cmisbook:make target val: Research In Motion target prop: cmisbook:model target val: BlackBerry 8900 target prop: cmisbook:copyright target val: test value updated alfresco eight target prop: cmisbook:yResolution target val: 72.0 Updating content stream in target object version:V 1.25 Polling for changes every 10 seconds Use ctrl+c to quit Sleeping...