Package org.apache.chemistry.opencmis.jcr

Examples of org.apache.chemistry.opencmis.jcr.JcrBinary


            JcrFolder.setProperties(contentNode, getTypeDefinition(), properties);

            // write content, if available
            Binary binary = contentStream == null || contentStream.getStream() == null
                    ? JcrBinary.EMPTY
                    : new JcrBinary(new BufferedInputStream(contentStream.getStream()));
            try {
                contentNode.setProperty(Property.JCR_DATA, binary);
                if (contentStream != null && contentStream.getMimeType() != null) {
                    contentNode.setProperty(Property.JCR_MIMETYPE, contentStream.getMimeType());
                }
View Full Code Here

TOP

Related Classes of org.apache.chemistry.opencmis.jcr.JcrBinary

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.